<< Click to display table of contents >> Page Count Items in TRichView Documents |
When inserted in TRichView or TRichViewEdit, this item is displayed as '{P}'.
When printing with TRVPrint, this item displays the count of pages.
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)
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
The following editor-style method inserts item of this type at 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:
▪SetCurrentItemExtraIntPropertyEx;
▪SetCurrentItemExtraStrPropertyEx;
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.
Export to HTML
Fields are saved as a plain text.
RTF and DocX
Fields can saved to RTF/DocX and loaded from RTF/DocX. You can disallow loading from RTF/DocX by assigning TRichView.RTFReadProperties.IgnoreFields=True.
Note: If RTF or DocX file is opened in Microsoft Word, this field is displayed as "?" until fields are updated.