ReportDocument.Load slow when database server not available
I'm using Crystal Reports developer version 22.214.171.1244 (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
Obviously Crystal Reports tries to locate the database server. Is there any way to prevent CR from doing this?
Dell Stinnett-Christy 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.