Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Can I edit the rpt file & change the datasource before loading the report?

We are an ISV and our application has a lot of reports. Our reports use a SQL Server database as the data source and each SQL Server at our customer sites has a different name.

In our testing we have determined that ReportDocument.Load tries to connect to the SQL Server that is saved in the RPT. If it can't fine the SQL Server saved in the RPT the load take about 60 seconds while it is waiting for the SQL Server Connection to time out.

We are using the Visual Studio 2008 version of Crystal Reports. This did not seem to be a problem with VB6/CR8.5.

We would like to edit the RPT and change the data source to the appropriate SQL Server before we call ReportDocument.Load.

Is it possible to edit the rpt file and change the data source before loading the report?

Or is there some way to tell Crystal not to try connecting to the DB

during the report.load?

In our case we will NEVER use the data source that is saved in the RPT, we will always change the data source using ApplyLogOnInfo.


Former Member
Not what you were looking for? View more on this topic or Ask a question