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

Passing a Parameter to a Web Service Report

Status
Not open for further replies.

SAEGroup

Programmer
Apr 11, 2003
1
US
Hi everyone,

I can't seem to figure out how to pass a parameter to a report that has been made avilable as a web service. I'm starting to think this is not possible. I explain...

I followed Crystal's sample VS.Net models and created my own report, which connects to a database, within a Web Service solution. I then choose "Publish as Web Service" and MyReport.rpt generates MyReportService.asmx automatically, which is a great feature. I also have a CustomerID parameter defined in MyReport.rpt, mind you.

Well, my problem comes when it's time to consume that report from a Windows App. I create the app, I add the Crystal Reports Viewer to the app, I add the following line:

Code:
localhost.MyReportService crMyReport = new localhost.MyReportService ();

My problem is that after that, the webservice does not expose anything that would allow my client to send a parameter. I was expecting to create a ParameterField and a couple of ParameterValues and pass those, but none of the methods exposed allow me to do that.

What am I missing?

If this is not possible, can I wrap MyReportService on another web service that would then be able to do it?

Thanks in advance,
Mauricio
 
mlang11 posted here in March regarding this, check the search engine, I'm having trouble with this browser.

-k

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top