cancel
Showing results for 
Search instead for 
Did you mean: 

TCRPE: How to change database name for a Crystal report v10 with multiple subreports

former_member639603
Discoverer
0 Kudos

We have an Delphi app that uses TCrpe object for Crystal Report v10 written for MS SQL Server Database. In Run-time, we need to connect the same report to different database depending on user's profile. The TCrpe help file says, we can change the TCrpe.Tables[i].TableName to include the database and owner details. However, it does not work, moreover, it seems report retains database name within the SQL of the report/subrports.

Did anyone come across this issue and know how to change database name of a report in run-time to connect to a different MS SQL server database than the report was designed with?

Any help would be appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

CR 10 is 15+ years old and we no longer support legacy SDK's.

Only option is to upgrade to .NET and use CR for VS from here:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Good luck

Don