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?

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.