Spread Windows Forms 18
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / PrintDocument Event


In This Topic
    PrintDocument Event
    In This Topic
    Occurs when printing a sheet.
    Syntax
    'Declaration
     
    
    Public Event PrintDocument As PrintDocumentEventHandler
    'Usage
     
    
    Dim instance As FpSpread
    Dim handler As PrintDocumentEventHandler
     
    AddHandler instance.PrintDocument, handler
    public event PrintDocumentEventHandler PrintDocument
    Event Data

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

    PropertyDescription
    Gets or sets whether to cancel the print process. Note: Cancelling the print process cannot be reversed.  
    Gets the order number of the current printed page.  
    Gets the type of PrintDocument event.  
    Gets the PrintAction type of the PrintDocument event.  
    Get sheet's index is printing.  
    Gets the total number of printed pages.  
    See Also