XlsExportOptions.PageRange Property

Gets or sets the range of pages to be exported.

Namespace: DevExpress.XtraPrinting

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

Declaration

public override string PageRange { get; set; }
Public Overrides Property PageRange As String

Property Value

Type Description
String

A String specifying the range of pages.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to PageRange
Cross-Platform Class Library RemotePrintingSystem
.ExportOptions.Xls.PageRange
ExportOptions
.Xls.PageRange
PrintingSystemBase
.ExportOptions.Xls.PageRange
WinForms Controls PrintingSystem
.ExportOptions.Xls.PageRange
XtraSchedulerReport
.ExportOptions.Xls.PageRange
WPF Controls ExportOptionsContainer
.Xls.PageRange
PrintingSystem
.ExportOptions.Xls.PageRange
PrintingSystem
.ExportOptions.Xls.PageRange
Reporting XtraReport
.ExportOptions.Xls.PageRange
DocumentOperationRequest
.ExportOptions.Xls.PageRange

Remarks

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".

NOTE

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.

NOTE

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

See Also