C1.C1Preview Namespace > C1PrintManager Class : AdjustPrintPage Event |
'Declaration Public Event AdjustPrintPage As AdjustPrintPageEventHandler
public event AdjustPrintPageEventHandler AdjustPrintPage
The event handler receives an argument of type AdjustPrintPageEventArgs containing data related to this event. The following AdjustPrintPageEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Handled | Gets or sets a value indicating whether the event hanlder has printed the page, or whether the caller (print manager) should print the page as usual.
The default is false. |
PageImage | Gets the current page image (usually this is a System.Drawing.Imaging.Metafile). |
PrintableArea | Gets or sets the physical printable area of the printer, in hundredths of an inch. When the event is fired, this property contains the printable area of the printer as returned by the printer driver, rotated if landscape printing. You may want to adjust this property e.g. to compensate for a buggy printer driver reporting incorrect hard margins. |
PrintManager | Gets the print manager object that is printing the document. |
PrintPageEventArgs | Gets the PrintPageEventArgs object passed into the PrintPage event handler of the print manager. |
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