Export (0) Print
Expand All

ReportViewer.PrintDialog Method 

Displays the Print dialog box.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

'Declaration
Public Sub PrintDialog
'Usage
Dim instance As ReportViewer

instance.PrintDialog
public void PrintDialog ()
public function PrintDialog ()

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

Private Sub Button1_Click(ByVal sender As System.Object, _
            ByVal e As System.EventArgs) Handles Button1.Click
   ReportViewer1.PrintDialog()
End Sub
Show:
© 2015 Microsoft