Table of Contents

Property PrintRange

Namespace
Alternet.Drawing.Printing
Assembly
Alternet.UI.Common.dll

PrintRange

Gets or sets the page numbers that the user has specified to be printed.

public virtual PrintRange PrintRange { get; set; }

Property Value

PrintRange

Remarks

The PrintRange property is used by the PrintDialog when the user selects a print range. The default PrintRange is AllPages. To enable the user to specify a range of pages to print, the AllowSomePages property must be set to true. To enable the user to specify the selected pages to print, the AllowSelection property must be set to true.

During the printing process, in the PrintPage event, view the PrintRange to determine what should be printed. If PrintRange is SomePages, use the FromPage and ToPage properties to determine what pages should be printed. If PrintRange is Selection, then specify output only for the selected pages.