Passing Parameter to Crystal Report using C#
How I pass a parameter to crystal report using C#
I store my parameters in DB and loop through and assign from there.
ReportDocument report = new ReportDocument(); report.Load(reportPath); for (int j = 0; j < reportParametersCount; j++) { string parameterName = reportParameters[j].ParameterName.ToString(); string parameterValue = reportParameters[j].ParameterValue.ToString(); report.SetParameterValue(parameterName, parameterValue); } |
HTH.
John