Makes active the page with the specified index in the page collection of the document.
Applies to: Document object
object.SetActivePage ( index ) |
The SetActivePage method syntax has these parts:
Part | Description |
object | Required. An expression that returns a Document object. |
index | Required. An expression that returns a Long value. The index of the page in the page collection of the document. |
If index is less than 1 or greater than the number of pages in the page collection of the document, the SetActivePage method doesn't change the active page of the document. To get a reference to the instance of the Page object, that corresponds to the active page of the document, use the ActivePage property.To find out the number of pages in the document, use the PagesNum method.
See Also |
ActivePage property, PagesNum method, SetActivePageByID method, Page object |