Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / C1PrintManager Class / AdjustPrintPage Event

In This Topic
    AdjustPrintPage Event (C1PrintManager)
    In This Topic
    Fired from within the System.Drawing.Printing.PrintDocument.PrintPage event handler of the current print manager, prior to actually printing the page. Allows to adjust the hard margins of the printer (e.g. to compensate for a buggy printer driver, see AdjustPrintPageEventArgs.PrintableArea), or to print the current page in user code (see AdjustPrintPageEventArgs.Handled). See also C1PrintOptions.PrintAsBitmap.
    Syntax
    'Declaration
     
    Public Event AdjustPrintPage As AdjustPrintPageEventHandler
    public event AdjustPrintPageEventHandler AdjustPrintPage
    Event Data

    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.

    PropertyDescription
    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.

     
    Gets the current page image (usually this is a System.Drawing.Imaging.Metafile).  
    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.  
    Gets the print manager object that is printing the document.  
    Gets the PrintPageEventArgs object passed into the PrintPage event handler of the print manager.  
    See Also