Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi to all,
I want to know that how to pass session value to crystal report and how to print it. Here is a scenario...
In my application user selects from date and two date, I pass these two dates via stored procedure and fetch data and show it to user using crystal report. Now I want to show on header that " From month:'Month selected' and Todate:'Month which is selected'". I have these data on my aspx page when user click on print report button. I want, if i can pass these two data on crystal report and print it.

Thanks in advance....
Posted
Comments
Thomas ktg 21-Nov-13 7:51am    
You can use parameter values like this to the Crystal Report
crystalReport.SetParameterValue("Frommonth", ddlmonth.SelectedItem.Value);

1 solution

In this tutorial, they pass the values from textboxes to report, just customize the code, that's it.
C# Crystal Reports - Date to Date[^]
 
Share this answer
 

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