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
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);
See Also