Hi Prabodh Bansall,
Place this code where you call the report...
eg:
RptParams Params = new RptParams(this);
Params.ShowDialog();
if (lSuccess)
{
RollsByFormClass RollsByForm = new RollsByFormClass(strFormula);
RollsByForm.Show();
}
Place this code in your report form...
if (strFormula != string.Empty)
crReportDocument.DataDefinition.RecordSelectionFor mula = strFormula;
strFormula contains all the parameters you want to pass to the report and completely replaces the scoping phrases in Crystal.
eg: strFormula = "{Customer.Surname} = " + TextBox1.Text.Trim();
Good luck.
cheers,
Mark Chimes
Dear sir,
I am using asp.net and i want to pass two parameters for date values(from and to) using crystal report.
Please help me.
My email id is [email removed]
Thanks and regards
Prabodh Bansal