Back to Devexpress

Sheet.Print(DXPrinterSettings) Method

officefileapi-devexpress-dot-spreadsheet-dot-sheet-dot-print-x28-devexpress-dot-drawing-dot-printing-dot-dxprintersettings-x29.md

latest2.0 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Print(
    DXPrinterSettings printerSettings
)
vb
Sub Print(
    printerSettings As DXPrinterSettings
)

Parameters

NameTypeDescription
printerSettingsDXPrinterSettings

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

See Also

Sheet Interface

Sheet Members

DevExpress.Spreadsheet Namespace