Back to Devexpress

ISpreadsheetComponent.BeforePrintSheet Event

officefileapi-devexpress-dot-spreadsheet-dot-ispreadsheetcomponent-982689f3.md

latest2.0 KB
Original Source

ISpreadsheetComponent.BeforePrintSheet Event

Occurs before printing a workbook.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
event BeforePrintSheetEventHandler BeforePrintSheet
vb
Event BeforePrintSheet As BeforePrintSheetEventHandler

Event Data

The BeforePrintSheet event's data class is BeforePrintSheetEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
IndexReturns the index of the worksheet to be printed.
NameReturns 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

ISpreadsheetComponent Interface

ISpreadsheetComponent Members

DevExpress.Spreadsheet Namespace