Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CrystalReportViewer
Message
General information
Forum:
ASP.NET
Category:
Reporting
Miscellaneous
Thread ID:
00722854
Message ID:
00723010
Views:
18
Nicky,

The first thing I would do is make sure you use the Text property instead of the Value property of the drop down. You need to make sure the name extracted is of type string. For the path of the report, you set it to the actual location of the report, relative to the hosting server. I would recommend looking at the following article and downloading the code. It is doing something similar to what you are trying to accomplish. It doesn't use a drop down but instead textboxes, however, the concepts would be the same about calling the report.

http://www.wimdows.net/articles/article.aspx?aid=14

>Cathi
>
>Okay. This is done as a WebForm. I tried it the way you mentioned. I received an "Invalid Report Source" error. The CrystalReportViewer.ReportSource is empty. Then I set it to the DropDownReportList.SelectedItem.Value and I received that error message.
>
>Then I tried to do the Custom Binding Expression method for one report. The first way I tried was to connect using the "http://buzzlightyear/projectdotnet/custreport.rpt". That kept giving me an "Invalid Report Path".
>
>So, then I tried connecting using the "s:\\projectdotnet\\CustReport.rpt" where "S" is the mapped drive and the report appears.
>
>Another thing. The reports are in the project as well as in a table in the database.
>
>What would you recommend for me to do?
>
>Thanks in advance!
>
>Nicky
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform