Forum


Replies: 2   Views: 3578
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();



$this->docx->addTemplate("test.docx");



$image = '<img src="http://192.168.0.68/pic/index.xt?34s&1397437993&sid=1&ssn=2215fd81c7f8f79e55ff47fc36148058&ccn=da1&cr=f0e6e5b8cf8db24793dcfdd77ea8d4bf&wordtemp=word" >' ;



$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?