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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports & Visual Studio 2005 Pro

Status
Not open for further replies.

MikeC14081972

Programmer
May 31, 2006
137
GB
Have built a windows app with Embedded crystal reports, but when a user tries to open the report they are receiving an error message that the report can not be found.

The reports are in the project in VS in the solution explorer. My question is how do I find the path that the reports are installed on the client machine.

Many Thanks

If you make something idiot proof - They'll Only make a better idiot!!!
 

If you're using embedded reports, then your setup will install into application directory. You would use something like this (C# example):
Code:
ReportsFolderPath = Application.StartupPath; // This is where your reports are

The other alternative is to store path to reports in App.Config file:
Code:
ReportsFolderPath =  ConfigurationSettings.AppSettings["ReportsDirectory"];


 
Thanks

If you make something idiot proof - They'll Only make a better idiot!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top