VpeGotoVisualPage

<< Click to Display Table of Contents >>

Navigation:  Management Functions >

VpeGotoVisualPage

Previous pageReturn to chapter overviewNext page

[Windows platform only]

Moves the preview to 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 the position of the visual page.

This page is independently from the currently active page, where you can insert objects on (see VpeGetCurrentPage() and VpeGotoPage())

int VpeGotoVisualPage(

VpeHandle hDoc,

int page

)

VpeHandle hDoc

Document Handle

int page

page number

Returns:

Value

Description

True

success

False

failure

Remarks:

In case of an error, LastError is set.

 

If you 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 = GetVisualPage(hDoc)

 

// move the preview to the next page:

VpeGotoVisualPage(hDoc, n + 1)