Returns or sets the values for the To text boxes of the Print dialog.
Object.ToPage [ = lToPage ]
The ToPage property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ACommonDialog |
ACommonDialog control |
|
lToPage |
Long |
The values for the To text boxes of the Print dialog. |
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 on the PrintOptions property.
The following example will set the ToPage to the page 30:
cdlg.ToPage=30
Copies, FromPage, FromPageMin, PrinterDefault, PrintOptions, ShowPrint, ToPageMax