Occurs before printing a workbook.
The BeforePrintSheet event's data class is BeforePrintSheetEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.|
|Index||Returns the index of the worksheet to be printed.|
|Name||Returns the name of the worksheet to be printed.|
The BeforePrintSheet event fires for each worksheet being printed or exported to PDF. To cancel the print/export operation, set e.Cancel to true.