Skip to main content
A newer version of this page is available. .

IXlSheet.PrintArea Property

Gets or sets the cell range to be printed.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v22.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design

Declaration

XlCellRange PrintArea { get; set; }

Property Value

Type Description
XlCellRange

An XlCellRange object that specifies an area on the worksheet to be printed.

Example

Note

A complete sample project is available at https://github.com/DevExpress-Examples/excel-export-api-examples

// Set the print area to cells A1:E5.
sheet.PrintArea = XlCellRange.FromLTRB(0, 0, 4, 4);

The following code snippets (auto-collected from DevExpress Examples) contain references to the PrintArea property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also