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

Crystal Reports Web Service

Status
Not open for further replies.

wooody1245

Programmer
Sep 13, 2005
28
US
I have an ASP.NET web service project that consists of a bunch of Crystal Reports. Everything works perfectly, but when I modify one of the reports I am forced to remove the old report, add in the new one and recompile. Is there a setting or modification to the project that I can do that will allow me to just drop in the new Crystal Report without having to recompile?
 
No there's no way to do that if you're compiling the reports into the project. However, you could de-couple your reports from the project and load them from .rpt files. Replacing a file with a new version would then make the new version available to your app.

The code do this looks something like this (from VS2005 Help):
Code:
private ReportDocument customersReport;
string reportPath = Server.MapPath("Customers.rpt");
customersReport.Load(reportPath);
crystalReportViewer.ReportSource = customersReport;

-Dell




A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top