ToPageMax Property (ACommonDialog)

Returns or sets the maximum allowed value for the print range.

Syntax

Object.ToPageMax [ = lToPageMax ]

The ToPageMax property syntax has the following parts:

 

Name

Type

Description

Object

ACommonDialog

ACommonDialog control

lToPageMax

Long

The minimum allowed value for the print range.

Comments

This property determines the largest number the user can specify in the ToPage text box.

Example

The following example will set the ToPageMax to 100 pages:

cdlg.ToPageMax=100

Applies to

ACommonDialog

See Also

Copies, FromPage, FromPageMin, PrinterDefault, PrintOptions, ShowPrint, ToPage