DocSelectPage activates the given page and returns the handle.
Return Value
hPage is the page handle. In case of an error hPage is 0.
Parameters
Identifies the document.
nPage is the index of a page, the index starts with 1.
If bUpdateFields is TRUE (1) the field functions will be updated. This can slow down the function significantly. Default value is TRUE (1).
Example
AppGetActiveDocument();
nPages = DocGetPageCount(hDoc);
hvData = 0;
for (i in 1:nPages) {
hActivePage = DocSelectPage(hDoc, i);
if (hActivePage == 0) {
MessageBox("Cannot display page");
continue;
}
// Do something with hActivePage...
}
History
| Version | Description |
|---|---|
| 5.30.0 | New Parameter bUpdateFields. |
id-1898806