LocalReport.SetParameters-Methode
Sets report parameter properties for the local report.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)
Syntax
'Declaration
'Usage
Parameter
- parameters
An array of ReportParameter objects that contains a list of the report parameter properties.
Hinweise
The parameters specified for the SetParameters method must be defined in the original report definition.
Beispiel
The following code example shows a report parameter being set to the value of a check box on a form.
private void SetReportParameters() {
ReportParameter p = new
ReportParameter("ShowDescriptions", checkBox1.Checked.ToString());
this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { p });
}
Private Sub SetReportParameters()
Dim p As New ReportParameter("ShowDescriptions", _
CheckBox1.Checked.ToString())
ReportViewer1.LocalReport.SetParameters(p)
End Sub
Siehe auch
Verweis
LocalReport-Klasse
LocalReport-Member
Microsoft.Reporting.WinForms-Namespace