FromPage Property (ACommonDialog)

Returns or sets the values for the From text boxes of the Print dialog.

Syntax

Object.FromPage [ = lFromPage ]

The FromPage property syntax has the following parts:

 

Name

Type

Description

Object

ACommonDialog

ACommonDialog control

lFromPage

Long

The values for the From text boxes of the Print dialog.

Comments

The FromPage and ToPage properties specify the first and last pages to be printed. These properties are valid only when the acdlgPrintOptionsPageNums flag has been set for the PrintOptions property.

Example

The following example will set the FromPage to the first page:

cdlg1.FromPage=1

Applies to

ACommonDialog

See Also

Copies, FromPageMin, PrinterDefault, PrintOptions, ShowPrint, ToPage, ToPageMax