Can anyone know how to set the Crystal Report path as App.path. Because in my project, the report path in LocalDisk(D:). I copy the debug folder to another computer with only one LocalDisk(C:). It display error. So i need the reports in app path. How i perform this?

Recommended Answers

Hi,

You can add your report files in your application folder and use relative paths (Application startup path or Executable Path) instead of hard-coded paths. For example:

Report.load(Application.StartupPath + "\CrystalReport.rpt")
Jump to Post

All 2 Replies

Hi,

You can add your report files in your application folder and use relative paths (Application startup path or Executable Path) instead of hard-coded paths. For example:

Report.load(Application.StartupPath + "\CrystalReport.rpt")

I already did that.. and thanx for your replay....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.