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!

Change Database at runtime with Crystal Enterprise 10 in ASP.NET

Status
Not open for further replies.

pfingsea

Programmer
Jun 2, 2004
1
US
Background:
I am using ASP.NET to interface with Crystal Enterprise 10. I am using (almost exactly) the Sample Web Application from Crystal. In a nutshell, the sample Web App connects to the CE InfoStore to display a list of reports, you select a report, it connects to the InfoStore and retrieves the Report as the ReportSource to a CrystalReportViewer control
ie
Code:
CrystalViewer.ReportSource = RetrieveReportFromEnterprise(ReportID)

Problem:
I need to be able to change the Database that the Report runs against at Runtime. Using just Crystal Reports this seems like a simple (relatively speaking) task, you load the report into a report object, iterate through the collection of tables in the report, and set the connection info for each table. I cannot seem to find an equivalent way to do this with CE though, there is no report object, there is just the viewer control. Does anyone have any ideas how to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top