I have an application in Borland C++ Builder 5 and I use the Crystal Reports VCL component to open reports. I am having a problem with long load times. Here is my code:
TCrpe *reportCrpe = new TCrpe( Application );
reportCrpe->ReportName = reportFilename;
//Here I set various report and parameter properties.
My problem is with the first Retrieve. It usually takes 10-20 seconds to complete (some of my customers report load times as long as 1 minute). The long load time seems to be caused by the presence of subreports in the report. I have a very simple 29KB report with one extremely simple subreport. It takes at least 10 seconds to load. When I remove the subreport it takes less than a second to load. I also have a very complex 1.1MB report with many complex subreports and it takes just as long as the 29KB report with the subreport so it doesn't seem to depend on the size of the report, just the presence of subreports.
I would like to know whether this is just the normal operation of the component or if there is some sort of solution to this problem. Unfortunately, I am not able to upgrade to the latest versions of the VCL component because they require at least C++ Builder 6 and I cannot upgrade from C++ Builder 5.
Thank you in advance for your reponses.