Skip to main content

IXlSheet.PrintArea Property

Gets or sets the cell range to be printed.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

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