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

Step 3: Publish the Report as a Service

1.    Right click on the Invoice.rpt file in the Solution Explorer.

2.    Select "Publish as web service" from the pop-up menu.

3.    An InvoiceReport.asmx file will be added to the project.  This file contains a class called InvoiceService that inherits from ReportServiceBase.

4.    Right click on the InvoiceService.asmx file select "Set as Start Page" from the pop-up menu.

5.    Delete the Service.asmx and Service.cs file from the project.

6.    Run the project by pressing F5.  You'll be prompted to turn debugging on.  Select "Modify the Web.config file to enable debugging." and click the OK button.

7.    Your browser should display the methods available for your Invoice service.

8.    Click on the TestReport link at the bottom of the page.

9.    Click the Invoke button.  A new window will open and you should see the XML that the web service produces.

10. Close this new window.

11. Navigate back to the original page with the list of methods for the service by clicking the "Click here for a complete list of operations." at the top of the page.

12. Leave this project running and go to step 4.


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-19 11:26:54 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search