cancel
Showing results for 
Search instead for 
Did you mean: 

Load report Failed

Former Member
0 Kudos

<p>In out application , we use Crystal to both Print reports and to create PDF files For Printing , we would do something like the following which works fine</p><font size="2" color="#008000"><font size="2"><p><font size="2" color="#0000ff">Dim</font><font size="2"> report </font><font size="2" color="#0000ff">As</font><font size="2"> </font><font size="2" color="#0000ff">New</font><font size="2"> InvoicePackage_PensionVerificationWhole</font></p></font><font size="2"><font size="2"><font size="2"><p>SqlDataAdapter2.Fill(ds)</p><p>report.SetDataSource(ds)</p><p>CrystalReportViewer1.ReportSource = report</p><p>To generate a PDF we would do the following</p></font></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Dim</font><font size="2"> report </font><font size="2" color="#0000ff">As</font><font size="2"> </font><font size="2" color="#0000ff">New</font><font size="2"> CrystalDecisions.CrystalReports.Engine.ReportDocument</font></font><font size="2"> <p>report.Load("InvoicePackage_PensionVerificationWhole.rpt")</p><p>With this syntax we get the Load report Failed message</p></font></font><p>Any help would be greatly appreciated</p></font>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

It sounds like the Load() method is not able to find and load the report in the app folder. Change the code so that the Load() method explicitly specifies the path to the .rpt file (ie: Load("C:AppsMyApp eport.rpt").

Answers (0)