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?
thanzeem7
0
Newbie Poster
Recommended Answers
Jump to PostHi,
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")
All 2 Replies
Reply to this topic
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.