NumPages Field
This field insers the total nuber of pages in the document.
Syntax
The syntax of this field looks like this:
SYNTAX |
---|
{ NUMPAGES } |
Inserting
Inserting this field is easily achieved through the RadFlowDocumentEditor's InsertField() method. It accepts code as first argument and result as second argument.
Example 1 demonstrates how you can insert a NumPages field.
Example 1: Insert NumPages field
editor.InsertText("Page ");
editor.InsertField("PAGE", "");
editor.InsertText(" of ");
editor.InsertField("NUMPAGES", "");
After updating the field the result would be "Page 5 of 60" (check Updating Fields).