Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Crystal Report generated in my .exe.

Status
Not open for further replies.

FoxT2

MIS
Oct 3, 2003
143
US
Hello,

How can I call a crystal report that is generated in my .exe? I tried these 2 ways and it errors that it cannot find the report in the specified path. If I copy the crystal reports into the path with the .exe it works fine. However, I do not want to have to do that because they are already in the .exe.

Dim CRengine As CrystalDecisions.CrystalReports.Engine.Table
Dim CRlogon As CrystalDecisions.Shared.TableLogOnInfo
Dim rptDocument As New ReportDocument

rptDocument.Load("..\CrystalReport1.rpt")

Or like this...

rptDocument.Load("CrystalReport1.rpt")

Thanks,

FoxT

 
Did you figure this out? I'm having a similar problem.
 
If you have the Report embedded in the exe you dont have to load it.

Instead of this...

Dim rptDocument as New ReportDocument

You would do this...

Dim rptDocument as New CrystalReport1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top