Quantcast
Channel: TX Text Control Community
Viewing all articles
Browse latest Browse all 1022

[OPEN] How to fill MS Word template bookmarks with text

$
0
0
I have a lot of customers with many MS Word templates and named (Word) bookmarks in these templates.

Into my VB6 program this part of the program fills perfect the text into the bookmarks of the document and puts the text again into the bookmark. (So I can access them later again if something changes.

If goDocument.ActiveWindow.Document.Bookmarks.Exists( sBookMark) Then
Set rRange = goDocument.ActiveWindow.Document.Bookmarks(sBookMa rk).range
rRange = SBookMarkValue
goDocument.ActiveWindow.Document.Bookmarks.Add sBookMark, rRange
End If

Is there a same way to do this within TX TextControl?
I prefer not to change the bookmarks to MergeFiels ... in some templates there are more than 250!! bookmarks.

Implementation will be in VB.NET Studio 2013.

Thanks !

Viewing all articles
Browse latest Browse all 1022

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>