Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Sheet.Print() Method

In This Article

Prints the current sheet using the default printer settings.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

void Print()

#Remarks

Use the current Print method overload to send the specified sheet 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.

The following example demonstrates how to print the active worksheet in a document using the default settings.

workbook.Worksheets.ActiveWorksheet.Print();

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 document, refer to the Printing example section.

See Also