次の方法で共有


ServerReport.SetParameters メソッド

Sets report parameter properties for the report.

名前空間: Microsoft.Reporting.WebForms
アセンブリ: Microsoft.ReportViewer.WebForms (microsoft.reportviewer.webforms.dll 内)

構文

'宣言
'使用

パラメータ

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

解説

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

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

参照

リファレンス

ServerReport クラス
ServerReport メンバ
Microsoft.Reporting.WebForms 名前空間