Article Details
Id: | 14679 |
Product: | finPOWER Connect |
Type: | FIX |
Version: | 3.00.06 |
Opened: | 22/06/2017 |
Closed: | 22/06/2017 |
Released: | 29/06/2017 |
Job: | J019219 |
Word Documents; SetContentHtml with table may format unexpectedly
When using an ISWordDocument object and updating a Bookmark using SetContentHtml, unpredictable results may occur.
One example is the contents of a Table will show below the table.
As a workaround, when using this function remove all vbNewlines, e.g.
Bookmarks.SetContentHtml("BookmarkName", Replace(Html, vbNewline, ""))