Skip to main content

XlsExportOptions.PageRange Property

Gets or sets the range of pages to be exported.

Namespace: DevExpress.XtraPrinting

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

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


public override string PageRange { get; set; }

Property Value

Type Description

A String specifying the range of pages.

Property Paths

You can access this nested property as listed below:

Object Type Path to PageRange
.Xls .PageRange


The PageRange property’s value contains the range of pages which should be exported. The ranges are separated by commas. For example: “1,3,5-12”.


If not all pages from the specified page range exist in the current document, invalid page numbers are ignored. So, only valid page numbers are taken into account.

If there are no valid page numbers in the page range string, all pages of the document are exported.


The PageRange property is ignored when the XlsExportOptions.ExportMode property is set to SingleFile.

See Also