p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   drystal reports with asp.net (http://p2p.wrox.com/showthread.php?t=19852)

taraj October 14th, 2004 03:56 AM

drystal reports with asp.net
I am using Visual Studio Pro and have built in a Crystal Report
that is viewed under my asp.net webpage.

Question : I need to be able to pass the report a parameter
from the webpage. How can I programatically add a variable to my report that can be set by the webpage that creates the report?

I want to format my report based on the value of this variable.


r_ganesh76 October 14th, 2004 04:02 AM

you can create a parameter in your report and set the value of this parameter through code using the SetParameterValue method of the ReportDocument Class

   ReportDocument cr = new ReportDocument();
   cr.SetParameterValue("StartDate", strMyParmValue);
   CrystalReportViewer.ReportSource = cr;


All times are GMT -4. The time now is 06:24 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.