<< Click to Display Table of Contents >> VpeRemovePage |
[Professional Edition and above]
Removes the current page from the document.
If the current page has a succeeding page, the succeeding page will become the new current page. If there is no succeeding page (i.e. you removed the last page of the document), the preceding page will become the new current page.
If the document has only one page, it can not be removed. Instead VPE will call internally VpeClearPage().
method void VpeRemovePage(
VpeHandle hDoc
)
VpeHandle hDoc
Document Handle
Remarks:
Pages numbered with the @PAGE macro or the $(Page) field are not renumbered after calling this method. We recommend to use the "<page> of <total pages>" technique explained in the Programmer's Manual.
The preview will refresh automatically after calling this function.
Enterprise Edition and above:
As you insert by code the page numbers as text objects into the document, obtain the VPE Object handles of those text objects by using the property LastInsertedObject and store these object references in a list. If there is a requirement for renumbering the document, first delete all objects in this list and then start the numbering process again.