Table of Contents

Property FromPage

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

FromPage

Gets or sets the page number of the first page to print.

public virtual int FromPage { get; set; }

Property Value

int

Remarks

The FromPage and ToPage properties are used by the PrintDialog when the user selects a print range. The AllowSomePages property must be set to true to enable the user to specify a print range. In addition, the PrintDialog requires the MinimumPage and MaximumPage to be specified and the FromPage value to be within that range.

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.