Click or drag to resize

PdfToolStripMainPdfPrintDocumentCreated Event

Occurs after an instance of PdfPrintDocument class is created and before printing is started.

Namespace:  Patagames.Pdf.Net.Controls.WinForms.ToolBars
Assembly:  Patagames.Pdf.WinForms (in Patagames.Pdf.WinForms.dll) Version: 4.57.2704
Syntax
public event EventHandler<EventArgs<PdfPrintDocument>> PdfPrintDocumentCreated

Value

Type: SystemEventHandlerEventArgsPdfPrintDocument
Remarks
You can use this event to get access to PdfPrintDialog which is used in printing routine. For example, the printing routine shows the standard dialog with printing progress. If you want to suppress it you can write in event handler the following:
private void ToolbarMain1_PdfPrintDocumentCreated(object sender, EventArgs<PdfPrintDocument> e)
{
    e.Value.PrintController = new StandardPrintController();
}
See Also