Click here to Skip to main content
16,012,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
dear sir,

how to display asp.net page value into crystal report page.
with neat example.
by mohan
Posted

First add one parameter in your report.
and drag it to report.

if you are using another page of report then send the page value using query string.

get that query string on form to and store it in variable like

string TYP = Request.QueryString["TYP"];


and then pass value to parameter like this

C#
crystalReport.SetDataSource(dt);
                 crystalReport.SetParameterValue("TYPE", TYPE);
                CrystalReportViewer1.ReportSource = crystalReport;


crystalReport is an object of ReportDocument.
TYPE is name of parameter declare on report.


I hope you got it.
 
Share this answer
 
 
Share this answer
 
Comments
Mohankumar.Engain 7-Oct-11 6:34am    
thanks but i want how to move asp.net page value to crystal reports.
did u understand?

for example : string name="Dot net Syllabus";

its display in crystal report at run time
How????....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900