Hi, I've had loads to do, so I couldn't pick this back up until a week ago.
A lot of new versions have been released in meanwhile, but I'll address the issue more clearly now.
Users of my application add comments in a wysiwyg editor. These comments can be preformatted to contain tables, highlighting, pretty much "structured" content.
I'm attempting to generate a document listing several of those structured comments.
Meaning I have a table which lists those values.
The code gets the html value of the content, and passes it to the function "replaceTableVariable".
Reading through the code there, I understand why no html is added, because it created a simple xml node of the tablerow, and "blindlly" replaces the symbol with the content. which is than added before the original symbol row. (insertBeforeNode)
Is there any fix around this?
Thank you
Hello,
The method replaceTableVariable doesn't allow to add HTML. We recommend you to do it in two steps: first use replaceTableVariable to add as many rows as needed setting new placeholders and save the document; and then open this new DOCX and use the replaceVariablebyHTMLmethod to replace the placeholders by HTML.
Regards.