.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

ISpreadsheetComponent.BeforePrintSheet Event

Occurs before printing a workbook.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

event BeforePrintSheetEventHandler BeforePrintSheet
Event BeforePrintSheet As BeforePrintSheetEventHandler
event BeforePrintSheetEventHandler BeforePrintSheet
Event BeforePrintSheet As BeforePrintSheetEventHandler
event BeforePrintSheetEventHandler BeforePrintSheet
Event BeforePrintSheet As BeforePrintSheetEventHandler

Event Data

The BeforePrintSheet event handler receives an argument of the BeforePrintSheetEventArgs type. The following properties provide information specific to this event.

Property Description
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.

Remarks

The BeforePrintSheet event fires for each worksheet being printed or exported to PDF. To cancel the print/export operation, set e.Cancel to true.

See Also