Symptom
- A Crystal report is opened in a stand-alone designer
- Running the same report in a VS 2010 application results in the error;
"Load Report Failed"
Environment
- VS2010
- CRVS2010
- Any stand-alone version of Crystal Reports (version 9.0.x, 10.0.x, 11.0.x, 11.5.x, 12.x)
Reproducing the Issue
- Open a report in a stand-alone version of Crystal Reports
- With the report opened in the designer, load a report in VS2010:
CrystalReportViewer1.ReportSource = <path to report>
'''' Or
Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
crReportDocument.Load(<path to report>)
Resolution
- The issue is resolved in Service Pack 2 for Crystal Reports for Visual Studio 2010
- Service Pack 2 and associated MSM, MSI and ClickOnce files can be found on the Crystal Reports for Visual Studio 2010 Reference page
- Alternative work-arounds:
- Close the report in the designer before running it in the application
- Use the following code to catch the exception:
try
{
rpt.Load(rptName.ToString());
rptClientDoc = rpt.ReportClientDocument;
}
catch (Exception ex)
{
MessageBox.Show("ERROR: " + ex.Message);
return;
}
Keywords
CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 crystal reports for visual studio 2010 load report failed , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem
Product
SAP Crystal Reports, developer version for Microsoft Visual Studio