all groups > visual studio .net enterprise tools > january 2004 >
You're in the

visual studio .net enterprise tools

group:

Crystal Report as a Web Service


Crystal Report as a Web Service G Mitchell
1/22/2004 2:11:06 PM
visual studio .net enterprise tools:
If I should post this under another subject please let me know

I am new to both Crystal Reports and Crystal Reports for VS .NET. I have a method that returns an ADO.NET dataset. The method uses an SQL Server stored procedure that returns a select list results table. The procedure requires two parameters. I want to use the dataset from the method as a source for a crystal report that is a web service. I have already created the report and even published it as a web service. The columns from the select statement in the procedure appear in my report in design mode so I assume I have done this part correctly. What I have read leads me to believe that the dataset connection process during report design only sets up the fields on the report. However it is unclear to me how to handle the dataset and parameters during execution. I have looked at some examples of loading datasets with the fill method, creating a report, making the dataset a source for the report (myReport.SetDataSource(myDataSet), and then assigning the report to a viewer (CrystalReportViewer1.ReportSource = myReport). The examples do this in a web form client that contains the viewer. Is there some variation of this that works with a web service report or does the filling of the dataset happen in one of the class members in the web service? The documentation I have read so far has me confused. Any guidance would be very much appreciated

G. Mitchel
RE: Crystal Report as a Web Service Jurgen
1/26/2004 1:06:06 AM
I try to understand what is exactly you wanted to know.
If I understand correctly you would like to know other things that you
can set from your program (e.g parameter) to the Crystal Report instead
of just setting the report.SetDataSource.

If you want to set the parameter you have 2 options (that I know).
1. from the SqlCommand. That is cmd.parameters.add
2. from the report. That is report.SetParameterValue ...

I hope that will help to solve your problem.




AddThis Social Bookmark Button