Building Reports using ASP.NET and Crystal Reports - Part 5 - Creating Reports as a Web Service
page 3 of 6
by Vince Varallo
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 31685/ 55

Step 2: Add the Crystal Report file

You'll need the Invoice.rpt file created in Part 1 for this step.  We'll simply copy the file to the ReportingService folder using Windows Explorer and then add the report to the Web Service project.

1.    Open Windows Explorer and copy the Invoice.rpt file created in Part 1 to the ReportingService folder that was created in Step 1.

2.    Go back to Visual Studio.  Right click on the ReportingService project and select Add Existing Item… from the pop-up menu.  Navigate to the ReportingService folder and click on the Invoice.rpt file.  Click the Add button.

3.    If you are using the Invoice.rpt file that you created in Part 1 you shouldn't need to change anything.  If you are using the Invoice.rpt file in the sample code you'll need to change the database connection string to your AdventureWorks database by opening up the report in Visual Studio.  Right click on the Database Fields in the Field Explorer Window and select Set DataSource Location… from the pop-up menu.


View Entire Article

User Comments

Title: Possibility in crystal report 2010   
Name: thantowi jauhari
Date: 2011-09-14 11:42:35 AM
Comment:
is it work for crystal report 2010 ??
Title: Crystal Reports Hosting   
Name: crystaly
Date: 2010-11-24 1:43:36 AM
Comment:
Just found your nice article. thx
Title: Crystal Rpts Web Service   
Name: Doug
Date: 2010-10-14 4:57:56 AM
Comment:
Hello Vince,
I was wondering if you had issues with load times while downloading the web service everytime you open the browser again. It takes 15 seconds to run my report the first time then 2 seconds everytime thereafter. Thoughs?
Doug
Title: ASP.NET Crystal Reports Hosting   
Name: rajanish
Date: 2009-10-23 1:27:06 AM
Comment:
good article thanks
if i have more than one reports(.rpt) in web service then how we can call dynamically from report web site
Title: ASP.NET Crystal Reports Hosting   
Name: Helen
Date: 2009-10-14 1:23:14 PM
Comment:
Excellent Articles!

Nice crystal reports guidance!


___________________________________________________
http://www.webhost4lifereview.com/crystal-report-web-hosting/
Title: Mr.   
Name: Rinoy
Date: 2009-10-13 8:31:30 AM
Comment:
good article thanks
if i have more than one reports(.rpt) in web service then how we can call dynamically from report web site

thanks
rinoy
Title: Mr   
Name: Kirt Darji
Date: 2009-10-07 12:55:13 AM
Comment:
Good Artical

crystle Report not run on live server for that what we have to do.

Product Spotlight
Product Spotlight 



Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-25 1:03:01 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search