PageAcross

Description

Gets the number of the current horizontal page. For example, if a report is twice the width of the print preview window and the window is scrolled horizontally to display the portion of the report that was outside the preview, PageAcross returns 2 because the current page is the second horizontal page.

Syntax

PageAcross ( )

Returns

Long. Returns the number of the current horizontal page if it succeeds and –1 if an error occurs.

Examples

Example 1

This expression returns the number of the current horizontal page:

PageAcross()

See also