ToPage Property (ACommonDialog)

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

Syntax

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.

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 on the PrintOptions property.

Example

The following example will set the ToPage to the page 30:

cdlg.ToPage=30

Applies to

ACommonDialog

See Also

Copies, FromPage, FromPageMin, PrinterDefault, PrintOptions, ShowPrint, ToPageMax