Sdílet prostřednictvím


ServerReport.SetParameters-Methode

Sets report parameter properties for the report.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
'Usage

Parameter

  • parameters
    An array of ReportParameter objects that contains a list of the report parameters properties.

Hinweise

The parameters specified for the SetParameters method must be defined in the original report definition.

Beispiel

private void SetReportParameters() {
   ReportParameter p = new 
      ReportParameter("ShowDescriptions", checkBox1.Checked.ToString());
   this.reportViewer1.ServerReport.SetParameters(new ReportParameter[] { p });
}
Private Sub SetReportParameters()
   Dim p As New ReportParameter("ShowDescriptions", CheckBox1.Checked.ToString())
   ReportViewer1.ServerReport.SetParameters(p)
End Sub

Siehe auch

Verweis

ServerReport-Klasse
ServerReport-Member
Microsoft.Reporting.WebForms-Namespace