PDFView4NET WinForms Edition
BeforePrintPage Event (PDFDocument)




O2S.Components.PDFView4NET Namespace > PDFDocument Class : BeforePrintPage Event
Fired before a PDF page is printed.
Syntax
'Declaration
 
Public Event BeforePrintPage As EventHandler(Of PrintPageEventArgs)
'Usage
 
Dim instance As PDFDocument
Dim handler As EventHandler(Of PrintPageEventArgs)
 
AddHandler instance.BeforePrintPage, handler
public event EventHandler<PrintPageEventArgs> BeforePrintPage
public: __event EventHandler<PrintPageEventArgs*>* BeforePrintPage
public:
event EventHandler<PrintPageEventArgs^>^ BeforePrintPage
Event Data

The event handler receives an argument of type PrintPageEventArgs containing data related to this event. The following PrintPageEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether the print job should be canceled.  
Gets the System.Drawing.Graphics used to paint the page.  
Gets or sets a value indicating whether an additional page should be printed.  
Gets the rectangular area that represents the portion of the page inside the margins.  
Gets the rectangular area that represents the total area of the page.  
Gets the page settings for the current page.  
Remarks
You can use this event to print content, such as watermarks, on the page under the PDF content.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also