Crystal Report file not found after Deploy

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

It is the first time I use Crystal Report and I have a issue.
I have a reportfile (Category.rpt) in my winform project.

When I work in debug mode I can load this report without any problem.

Dim rptDocument as new CrystalDecisions.CrystalReports.Engine.ReportDocument
rptDocument.Load("Category.rpt")

After deployement, the program did not find the file (He is looking in the
application data repertory).

How can I :

- Include the rpt file in deployement phase.
- Change my code in order that the load report was fine after deployment?

I have try with path like Application.startupPath, ...

Thanks

Patrick
 
Hi,

It is the first time I use Crystal Report and I have a issue.
I have a reportfile (Category.rpt) in my winform project.

When I work in debug mode I can load this report without any problem.

Dim rptDocument as new CrystalDecisions.CrystalReports.Engine.ReportDocument
rptDocument.Load("Category.rpt")

After deployement, the program did not find the file (He is looking in the
application data repertory).

How can I :

- Include the rpt file in deployement phase.
- Change my code in order that the load report was fine after deployment?

I have try with path like Application.startupPath, ...

Thanks

Patrick

Check the build action of the rpt file -- make sure it is content
 
Back
Top