Metoda ReportViewer.PrintDialog — (PrinterSettings)
Displays the Print dialog box.
Przestrzeń nazw: Microsoft.Reporting.WinForms
Zestaw: Microsoft.ReportViewer.WinForms (w Microsoft.ReportViewer.WinForms.dll)
Składnia
'Deklaracja
Public Function PrintDialog ( _
printerSettings As PrinterSettings _
) As DialogResult
public DialogResult PrintDialog(
PrinterSettings printerSettings
)
public:
DialogResult PrintDialog(
PrinterSettings^ printerSettings
)
member PrintDialog :
printerSettings:PrinterSettings -> DialogResult
public function PrintDialog(
printerSettings : PrinterSettings
) : DialogResult
Parametry
- printerSettings
Typ: PrinterSettings
A PrinterSettings object, used to initialize the dialog box.
Unlike in the PrinterSettings property, this object's page ranged properties, such as the PrintRange, FromPage, and ToPage properties, are used by the ReportViewer to initialize the print range in the Print dialog box.
Wartość zwracana
Typ: DialogResult
Cancel if the user clicked the Cancel button or if the Print event is cancelled; OK if the user clicked the OK button.
Uwagi
Invoking this method is similar to the user clicking the Print button, except it does not trigger the Print event. If the user clicks the Print button in the Print dialog box, this method triggers the PrintingBegin event.