Returns or sets the maximum allowed value for the print range.
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. |
This property determines the largest number the user can specify in the ToPage text box.
The following example will set the ToPageMax to 100 pages:
cdlg.ToPageMax=100
Copies, FromPage, FromPageMin, PrinterDefault, PrintOptions, ShowPrint, ToPage