FirstPage, LastPage, NextPage, PreviousPage Methods

FirstPage, LastPage, NextPage, PreviousPage Methods

See Also                  Applies To

The FirstPage, LastPage, NextPage, PreviousPage methods are used to navigate through the pages in a snapshot file.

Syntax

object.FirstPage

object.LastPage

object.NextPage

object.PreviousPage

These methods have the following arguments.

Argument Description
object An object representing a Snapshot Viewer control.

Remarks

These methods are used to move through the pages in a snapshot file. With one exception, executing these methods has the same effect as clicking the navigation buttons that are a part of the Snapshot Viewer control. The exception is that clicking the navigation buttons on the control will trigger the related FirstPage, LastPage, NextPage, or PreviousPage events, while navigating through pages programmatically does not trigger these events.

If the SnapshotPath property has no value or has an invalid value, using one of these methods will generate an error. You can use the ReadyState property to make sure the SnapshotPath is valid.

If you use the NextPage method while on the last page in a snapshot file, the last page in the file is displayed and no error occurs. If you use the PreviousPage method while on the first page in a snapshot file, the first page in the file is displayed and no error occurs.