Replies: 2   Views: 3162
Questions about the function replacetemplatevariablebyhtml()
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 bruce  · 14-04-2014 - 04:41

$this->docx = new CreateDocx();


$image = '<img src="" >' ;

$this->docx->replaceTemplateVariableByHTML($v, "block", $image, array("isFile"=>false, "parseDivsAsPs"=>false, "downloadImages"=>true));

the generated .docx file doesn't have the image and also there is a warning  while opening the .docx file 

is there any problem to use like this?


Posted by jorgelj  · 15-04-2014 - 08:44


Please try running the included example . We have done some tests and everything runs fine.