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.
Property | Description |
---|---|
Cancel | Gets or sets whether to cancel the print process. Note: Cancelling the print process cannot be reversed. |
CurrentPage | Gets the order number of the current printed page. |
EventType | Gets the type of PrintDocument event. |
PrintAction | Gets the PrintAction type of the PrintDocument event. |
SheetIndex | Get sheet's index is printing. |
TotalPage | Gets the total number of printed pages. |