Solved

Crystal Reports 8.5 VCL - Long Load Time

Posted on 2006-10-26
3
926 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now