Skip to Content
0
Former Member
Mar 27, 2007 at 01:46 AM

Load report Failed

37 Views

<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>