Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Crystal Reports location in the Windows application

Hello,

I'd created several C# Web applications with the Crystal reports 2008. But this is the first time that I'm creating a Windows application with Crystal reports. In fact I'm working almost exclusively with the Web application, so I don't have much experience with Windows (VS 2005).

So my question is - what is the right place to put Crystal reports in Windows application, and how should I refer to them?

In the Web application I could put the reports, for instance, to the Reports folder in the root of the application, then to refer to them this way:

sReportPath = Server.MapPath("../Reports/Payout2.rpt");

If I do the same in Windows application and use something like this:

sReportPath = Path.GetFullPath("Reports
Payout2.rpt");

it will give me the absolute path to the report. But how it would work after I install the application to the user's computers?

I would appreciate your suggestions. This should be a simple question for anyone who works with the Windows applications, but I'm pretty new to this.

Thank you,

Peter

Not what you were looking for? View more on this topic or Ask a question