Code: Select all
report.Dictionary.DataSources[0].Parameters["@locationID"].ParameterValue = "1";
report.Render(false);
The report will run if I set it like this:
Code: Select all
report["@locationID"] = "1"
Code: Select all
report.Dictionary.DataSources[0].Parameters["@locationID"].ParameterValue = "1";
report.Render(false);
Code: Select all
report["@locationID"] = "1"
Code: Select all
report.Dictionary.DataSources[0].Parameters["@locationID"].Value = "1";
report.Render(false);
Code: Select all
report.Dictionary.DataSources["DataSourceName"].Parameters["ParameterName"].Value = yourvalue;