Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / January 2004

Tip: Looking for answers? Try searching our database.

Crystal Report as a Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
G Mitchell - 22 Jan 2004 22:11 GMT
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
Jurgen - 26 Jan 2004 09:06 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.