Symptom
How to add a Helper Method to access Crystal Reports Web Services?
Resolution
To create the Report Web Services required for Server Files:
- Start Visual Studio.
- From the File menu, select New, and then click Web Site.
- In the New Web Site dialog box, select the Visual C# from the Language list.
- From the Templates list, click ASP.NET Web Service
- In the Location field, replace the default project name with the name of your project.
For the purposes of this example, we will save the project in C:\InetPub\wwwroot\ with the name CrystalReportsWebServices2005.
C:\InetPub\wwwroot\CrystalReportsWebServices2005\
Click OK. - From the Debug menu, click Start Debugging.
A dialog box appears and states that the Web.config file must be modified. Click the OK button to enable debugging.
Once debugging is complete, return to the application. - From the Solution Explorer, right-click Service.asmx, and then click Delete.
- In the Solution Explorer, expand the App_Code folder, right-click Service.cs, and then click Delete.
- In the Solution Explorer, right-click the project name that is in bold type, and then click Add New Item.
- In the Add New Item dialog box, do the following:
From the Installed Templates field, select Web Service.
In the Name field, enter ServerFileReportService.asmx
Uncheck Place code in separate file.
Keywords
Helper Method Web Services , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To
Product
SAP Crystal Reports, version for Visual Studio .NET 2005 ; SAP Crystal Reports, version for Visual Studio .NET 2008 ; SAP Crystal Reports, version for Visual Studio .NET 9.1