VisualPage

<< Click to Display Table of Contents >>

Navigation:  Management >

VisualPage

Previous pageReturn to chapter overviewNext page

[GUI Control Only]

Retrieve or set the number of the currently visible page in the preview. This page is independently from the currently active page, where you can insert objects on (see CurrentPage).

If you set this property, the preview display the specified page. VPE has internally two working pages: one your application is working on and one - the visual page - which is currently viewed by the user (if the preview is open). With this property you can set / retrieve the position of the visual page.

property long VPE.VisualPage

read / write; runtime only

Possible Values:

The number of the currently visible page.

Default:

1 = the first page, after a call to OpenDoc()

Remarks:

In case of an error, LastError is set.

 

If want to show the preview and let the user work with it (e.g. scroll and print) while your application is still generating the document, see "Multipage Documents" in the Programmer's Manual for details.

Example:

// retrieve the page that is currently shown in the preview:

n = Doc.VisualPage

 

// move the preview to the next page:

Doc.VisualPage = n + 1