Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / GridPrintDocument Class / QueryPrintPage Event


In This Topic
    QueryPrintPage Event
    In This Topic
    Raised when a page is about to be printed.
    Syntax
    'Declaration
     
    Public Event QueryPrintPage As QueryPrintPageEventHandler
    'Usage
     
    Dim instance As GridPrintDocument
    Dim handler As QueryPrintPageEventHandler
     
    AddHandler instance.QueryPrintPage, handler
    public event QueryPrintPageEventHandler QueryPrintPage
    Event Data

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

    PropertyDescription
    Gets the number of the page that is about to be printed.  
    Gets or sets a boolean value indicating if the page is to be printed.  
    Gets the PrintPageEventArgs used by the System.Drawing.Printing.PrintDocument.PrintPage event.  
    Remarks

    If you are preventing all pages from being printed during a printing process, a blank page will be printed unless you set e.Cancel to true.

    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