Forum


Replies: 4   Views: 3857
Html and replacetablevariable
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  · 21-07-2015 - 07:32

Hi there, the embedHtml() method returns nothing, and that's why your code does not render anything, because $htmlFragment is null. Change these lines: $htmlFragment = $wf->embedHTML($html) to this $wf->embedHTML($html), and $data = array( array('name' => 'Example name', 'number' => 12345, 'html' => $htmlFragment) ); to this $data = array( array('name' => 'Example name', 'number' => 12345, 'html' => $wf) );