on 03-27-2007 2:46 AM
<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>
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").
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.