Share via


Visual Basic: CommonDialog Control

FromPage, ToPage Properties

See Also   Example   Applies To

Return or set the values for the From and To text boxes of the Print dialog.

Syntax

object**.FromPage** [= number]

object**.ToPage** [= number]

The FromPage and ToPage property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number A numeric expression that specifies the first and last pages to be printed.

Remarks

These properties are valid only when the cdlPDPageNums flag has been set.

Data Type

Integer