Passing a value to a report parameter
The report may have parameters. Read more about this in the User's Manual. To pass a value to the parameter, use the SetParameterValue
method of the Report object:
report1.Load("report.frx");
report1.SetParameterValue("MyParam", 10);
report1.Show();
This method is declared as follows:
public void SetParameterValue(string complexName, object value)
Specify the parameter's name in the complexName
parameter. To access a nested parameter, use its full name, for example:
"ParentParameter.ChildParameter"