Forum


Replies: 8   Views: 4844
Using wordstyles to format replacevariablebyhtml output possible?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 29-12-2015 - 07:22

Hello,

You need to associate a class, id or tag to the style and use the strictWordStyles option is some to overwrite Word styles is needed.

We recommend you to check the examples available on http://www.phpdocx.com/documentation/introduction/html-to-word-PHP ( Using native Word formatting with HTML). They use embedHtml but the same applies to replaceVariableByHTML.

Regards.