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 命名空间