Hello !
I have a problem with setting the location for my Crystal Reports subreports from my Delphi application.
I have seen some threads about this before but I haven´t been able to fix my problems.
When running the application we get an access violation.
I’m working with
Crystal Reports 8.5
Delphi5
Oracle7 (and Oracle8 for some customer)
We develop our reports against a test database and will be able to change the connection to another database at runtime so it effects both main report and subreports.
It is just for the ones with Oracle8 that I have the problem. For the other ones it works with the following code when calling the main report:
var
CrpPrint: TCRPE;
begin
CrpPrint:= TCRPE.Create(application);
CrpPrint.Connect.ServerName := ’DatabaseName’;
CrpPrint.Connect.UserID := ’UserId’;
CrpPrint.Connect.Password := ’Password’;
CrpPrint.ReportName := Path + Name of MainReport;
.
.
.
.
CrpPrint.Execute;
end;
If anyone have some sort of solution or workaround for this problem I will be very, very happy.
/Goran.
I have a problem with setting the location for my Crystal Reports subreports from my Delphi application.
I have seen some threads about this before but I haven´t been able to fix my problems.
When running the application we get an access violation.
I’m working with
Crystal Reports 8.5
Delphi5
Oracle7 (and Oracle8 for some customer)
We develop our reports against a test database and will be able to change the connection to another database at runtime so it effects both main report and subreports.
It is just for the ones with Oracle8 that I have the problem. For the other ones it works with the following code when calling the main report:
var
CrpPrint: TCRPE;
begin
CrpPrint:= TCRPE.Create(application);
CrpPrint.Connect.ServerName := ’DatabaseName’;
CrpPrint.Connect.UserID := ’UserId’;
CrpPrint.Connect.Password := ’Password’;
CrpPrint.ReportName := Path + Name of MainReport;
.
.
.
.
CrpPrint.Execute;
end;
If anyone have some sort of solution or workaround for this problem I will be very, very happy.
/Goran.