Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How dynamically load a crystal report to ASP.NET

Status
Not open for further replies.

Plato2

Programmer
Dec 6, 2002
192
US
I have 8-10 different crystal reports. I want dynamically load a report to ASP.NET page depands on a previous user selection. I don't want to create a seperate ASP.NET page for each crystal report. How can I build generic ASP.NET that can load a selected crystal report?

Any ideas or suggestion would be appriciated.

Thanks in advance
 
I take it the user selection you are talking about comes from a drop down box or whatever on a web page.
The way I have it is that you select your report and then click "view". Clicking "view" calls a method "showReport" and passes in an integer relating to the report chosen from the drop down. In the method itself, these integers are resolved into reports (path + report name) and then CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(path+reportname) is called (followed by all the connection info stuff).

Is this what you meant? I found lots of excellent examples on the web for this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top