Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

Workbook.Print() Method

Prints the document to the default printer.

You require a license to the DevExpress Office File API or DevExpress Universal Subscription to use this property in production code.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Docs.v19.1.dll

Declaration

public void Print()

Remarks

Use the current Print method overload to send the specified workbook to the default printer. To select another printer and change printer settings, create a PrinterSettings class instance and pass it to the Print method as a parameter.

To print a specific sheet in a workbook, use the Sheet.Print method.

To define general page options, use properties of the WorksheetView object accessible from the Worksheet.ActiveView property. WorksheetView enables you to specify page orientation, margins and paper size settings.

The WorksheetPrintOptions object’s properties allow you to specify more print-specific options, which include scaling, printing gridlines, titles, row and column headings, setting page order and more.

For more information on how to specify print settings and print a workbook, refer to the Printing example section.

See Also