Sheet.Print(DXPrinterSettings) Method
Prints the current sheet using the specified printer settings. Use this method overload in non-Windows environments.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
printerSettings | DXPrinterSettings | An object that contains printer settings. |
Remarks
Use this Print
method overload to print a particular sheet in a document with custom printer settings. This method overload works in non-Windows environments.
To define general page options, use the WorksheetView object properties. Obtain this object through the Worksheet.ActiveView property. WorksheetView
lets you set page orientation, margins, and paper size.
Use the WorksheetPrintOptions object properties to specify print-specific options.
Refer to the following example section for more details on specifying print settings and printing a document: Printing