My company has an application that uses MS SQL Server as the database, and Crystal Reports 8.5 as the report engine. I am having difficulty debugging CR problems in this application and I could use some help.
Ideally I would like the user of an application to select a SQL Server datasource, including server name and database name, upon opening the program and have the program connect to the database. Naturally I would like the reports to access this same database. But although the program has no problem accessing SQL Server data, it seems to have the hardest time getting the reports to open reliably. Very often, a report will open flawlessly on my test computer, but when it is redeployed to a new user's machine, the report will fail to open. The most common error is "Server has not yet been opened".
Since I am relatively new to CR, I am trying to understand the rationale for including local database server connection information inside the report files themselves. Whenever I manipulate a report in CR and save it, the default behavior is to save this local connection data in the report file. I see no point in distributing a report to an end user that contains references to my local database server connection.
So, as I understand it, either this information needs to be stripped out of the report before it is deployed, or it needs to be overwritten by the local user's correct database connection information during the program run. In either case it should have the correct connection before the report is opened and displayed.
The program itself is written in Delphi 5; it uses the RDCReport, RDCApplication, and CRViewer ActiveX controls to handle the report connection.
Ideally I would like the user of an application to select a SQL Server datasource, including server name and database name, upon opening the program and have the program connect to the database. Naturally I would like the reports to access this same database. But although the program has no problem accessing SQL Server data, it seems to have the hardest time getting the reports to open reliably. Very often, a report will open flawlessly on my test computer, but when it is redeployed to a new user's machine, the report will fail to open. The most common error is "Server has not yet been opened".
Since I am relatively new to CR, I am trying to understand the rationale for including local database server connection information inside the report files themselves. Whenever I manipulate a report in CR and save it, the default behavior is to save this local connection data in the report file. I see no point in distributing a report to an end user that contains references to my local database server connection.
So, as I understand it, either this information needs to be stripped out of the report before it is deployed, or it needs to be overwritten by the local user's correct database connection information during the program run. In either case it should have the correct connection before the report is opened and displayed.
The program itself is written in Delphi 5; it uses the RDCReport, RDCApplication, and CRViewer ActiveX controls to handle the report connection.