Available for: UI for ASP.NET MVC | UI for ASP.NET AJAX | UI for Blazor | UI for WPF | UI for WinForms | UI for Xamarin | UI for WinUI | UI for ASP.NET Core | UI for .NET MAUI

New to Telerik Document Processing? Download free 30-day trial

NumPages Field

This field insers the total nuber of pages in the document.


The syntax of this field looks like this:



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).

See Also

In this article