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.Load(strReportPath);
cr.SetDataSource(DS.Tables["Customers"]);
cr.SetParameterValue("StartDate", strMyParmValue);
CrystalReportViewer.ReportSource = cr;
Regards
Ganesh
|