Hi… I have an RTF text in database and i put it to my document with function - InsertDocument(Byval insertAfterNode as Node, Byval srcDoc as Document).
I can put PageNumber into my document with - Builder.InsertField(“PAGE”, “”)
And I want ask…
How can I replace some tag in this RTF text with Page Number?
Thanks for your inquiry. If you need to replace a placeholder with a PAGE field, you can use a similar approach as suggested here to achieve this:
Just insert a PAGE field instead of MERGEFIELD.
Hope this helps.