Solved

Crystal Reports 8.5 VCL - Long Load Time

Posted on 2006-10-26
3
931 Views
Last Modified: 2010-08-05
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;
reportCrpe->Connect->Retrieve( );
reportCrpe->ParamFields->Retrieve( );
reportCrpe->SectionHeight->Retrieve( );
//Here I set various report and parameter properties.
reportCrpe->Execute( );

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.


--Adrian
0
Comment
Question by:AdrianSRU
3 Comments
 
LVL 12

Accepted Solution

by:
AdrianSRU earned 0 total points
ID: 17811448
I have figured out why the report is taking so long to load.  My subreports are set to 'Re-import when opening'.  Apparently when that flag is set in the report the VCL also attempts to re-import it.  When I unchecked that option the report loaded very fast.  What I would like to know now is if there is a way to specify in code that the subreports should not be re-imported.


--Adrian
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 17811882
That is very true.  Since you are opening the report the subreports will get reimported.  Useful if the subreports change but otherwise not really.

mlmcc
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question