OnPage Cell (Print Properties Section) [Visio 2003 SDK Documentation]

Indicates whether the drawing is printed on a specific number of printer pages.

Value Description

TRUE

Fit the drawing page to a defined number of printer pages.

FALSE

Do not fit the drawing page to a defined number of printer pages (the default).

Remarks

If the OnPage cell is set to TRUE, Microsoft Office Visio uses the PagesX and PagesY cells to determine the number of printer pages on which to fit the drawing. Values in the ScaleX and ScaleY cells are ignored. This can be considered an "autoscale" setting.

This value corresponds to the Fit to option on the Print Setup tab in the Page Setup dialog box (Format menu).

To reference the OnPage cell by name from another formula, or from a program using the CellsU property, use:

Cell name:

OnPage

To reference the OnPage cell by index from a program, use the CellsSRC property with the following arguments:

Section index:

visSectionObject

Row index:

visRowPrintProperties

Cell index:

visPrintPropertiesOnPage