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:
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
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