rvico TRichView Reference | Item Types

Page Counts

Top  Previous  Next

When inserted in TRichView or TRichViewEdit, this item is displayed as '{P}'.

When printing with TRVPrint, this item displays the count of pages.

srv_icon ScaleRichView: When inserted in TSRichViewEdit, this item displays the count of pages.

Class for this item type is TRVPageNumberItemInfo  (see for detailed information).

Style of this item type: rvsPageCount (-209)

Methods of TCustomRichView

The following viewer-style method adds item of this type to the end of the document:

AddItem (create TRVPageCountItemInfo object, add it using AddItem)

The following method returns TRVPageCountItemInfo object


Methods of TCustomRichViewEdit

The following editor-style method inserts item of this type in the position of caret:

InsertItem (create TRVPageCountItemInfo object, insert it using InsertItem)

The following method returns TRVPageCountItemInfo object at the position of caret:


The following methods change properties of items as editing operations:






Fields have all properties of label items.

By default, Text='{P}'. You can change this value to display another code in TRichView and TRichViewEdit.

Additionally, it has property:

NumberType – numbering type;

This property is also accessible as rveipcPageNumberType property. Accessing it in this way allows changing it in editing operations.

Saving and Loading

Export to HTML

Fields are saved as a plain text.


Fields can saved to RTF and loaded from RTF. You can disallow loading from RTF by assinging TRichView.RTFReadProperties.IgnoreFields=True.

Export to DocX

Fields can be exported in DocX

Note: If RTF or DocX file is opened in Microsoft Word, this field is displayed as "?" until fields are updated.

TRichView © trichview.com