次の方法で共有


ReportViewer.PrintDialog メソッド

Displays the Print dialog box.

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

構文

'宣言
'使用

解説

Calling this method while the report is being rendered in the control causes an InvalidOperationException to be thrown.

private void button1_Click(object sender, EventArgs e)
{
   reportViewer.PrintDialog();
}
Private Sub Button1_Click(ByVal sender As System.Object, _
            ByVal e As System.EventArgs) Handles Button1.Click
   ReportViewer1.PrintDialog()
End Sub

参照

リファレンス

ReportViewer クラス
ReportViewer メンバ
Microsoft.Reporting.WinForms 名前空間