tags:

views:

195

answers:

2

Hi All,

In my crystal report i am giving from and to date as input through aspx page. Now i want to display the from date in the report viewer. Please give solution...

A: 

add one From date parameter in the Report and then you can do like below code. lRptClass.SetParameterValue("Fromdate", Fromdate)

KuldipMCA
it is asking value during page load?
i don't understand u r asking or giving answer.
KuldipMCA
how to pass value from aspx page to a crystal report ?
A: 

Add the parameter fields to the report's Report Header section.

If it is a date-range parameter, create a formula field with the following code:

ToText(Minimum({?Date Range}), "MM/dd/yyyy") + "-" + ToText(Maximum({?Date Range}), "MM/dd/yyyy")

Add the formula field to the report' Report Header section.

Craig