17.16.5.42 NUMPAGES

Description: Retrieves the number of pages in the current document, as recorded in the Pages element of the Application-Defined File Properties part.

Field Value: The number of pages in the current document.

Switches: Zero or one numeric-formatting-switch or general-formatting-switch.

[Example: Consider the case in the document has 19 pages and the following fields are updated:

NUMPAGES
NUMPAGES
  \# #,##0
  \* OrdText

the results are:

19
nineteenth

end example]

Syntax:

Last updated on