Returns the position of the first character in a given page in a Text Processing control.
// Insert an image on page 2
nPosPage2 is int = DocPositionTopPage(WP_MyDocument, 2)
DocInsert(WP_MyDocument, nPosPage2, ElementHeader)
Syntax
<Result> = DocPositionTopPage(<Word Processing control> , <Page number>)
<Result>: Integer
Position of the first character in the specified page. This position can be used with DocInsert to insert an element in the Word Processing control.
<Word Processing control>: Control name
Name of the Word Processing control to use.
<Page number>: Integer
Number of the page where the position is to be found.
Business / UI classification: UI Code