Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ReportDocument.Load slow when database server not available

I'm using Crystal Reports developer version 13.0.16.1954 (service pack 16, latest version at this moment) for Visual Studio 2015.

ReportDocument.Load takes more than one minute when the database server the report is linked to is not available.

This is all code required to reproduce the issue:

Dim rd As New ReportDocument

rd.Load("c:\temp\test.rpt")

Obviously Crystal Reports tries to locate the database server. Is there any way to prevent CR from doing this?

Tags:
replied

Ahhhh!  CR 8.5 is a VERY old version of Crystal - it's been out of support for around 15 years.  The internal structure of .rpt files had some major changes with Crystal 9.  It could be that the report is taking a while to load because of those differences.  You might try saving the .rpt file from VS in order to upgrade it.

I also just had another thought - if you let the report load once, close it and then open it again or open another report, is the issue still there?  If not, then the slowness you're seeing is due to the .Crystal NET assemblies loading the first time a report is loaded.

-Dell

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question