Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)
/** @event */ public void add_PrintingBegin (ReportPrintEventHandler value) /** @event */ public void remove_PrintingBegin (ReportPrintEventHandler value)
This event can occur when the Print dialog box is launched by the PrintDialog method or by the user clicking the Print button in the toolbar. Information about this event is passed in a ReportPrintEventArgs object to the ReportPrintEventHandler delegate, which handles the event.
The event arguments contain the printer settings the user selects in the Print dialog box. If this event is not cancelled, the printer settings are saved into the PrinterSettings property. If this event is cancelled, the Printing dialog box is not displayed, the report is not printed, and the printer settings are not saved.
For more information about handling events, see Consuming Events.