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

PageByPageExportOptionsBase.PageRange Property

Gets or sets the page range to be exported.

Namespace: DevExpress.XtraPrinting

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

Declaration

[DefaultValue("")]
[XtraSerializableProperty]
public virtual string PageRange { get; set; }

Property Value

Type Default Description
String String.Empty

A page range.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to PageRange
Cross-Platform Class Library ExportOptions
.Rtf.PageRange
WinForms Controls DiagramOptionsExport
.PdfExportOptions.PageRange
WPF Controls DiagramControl
.PdfExportOptions.PageRange
DiagramDesignerControl
.PdfExportOptions.PageRange
ExportOptionsContainer
.Rtf.Xps.PageRange

Remarks

The PageRange property value contains the page range to be exported. Ranges are separated by commas. For example: “1,3,5-12”.

Note

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

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

Pages included in a range keep their original page numbers. A range does not recalculate page numbers.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PageRange 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