SAP Knowledge Base Article - Public

1578823 - CRVS2010; "Load Report Failed" error when Report is open in any full version of the CR Designer

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

 

  • Alternative work-arounds:
  1. Close the report in the designer before running it in the application
  2. 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