Forum


Replies: 1   Views: 3446
Replacetemplatevariablebyhtml does not work
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 Sajid  · 18-02-2016 - 02:22

Hi, we are using phpdocx 3.7 pro and its working perfectly fine with our old application.

We are upgrading application to a newer version and trying to use the extacly same code from the old application but replacteTemplateVariableByHTML does not replace any variable in the generated docx.

However, if we use addTemplateVariable(), it replaces the variable by text but we need to use the html version.

 

Any suggestion would be appreciated.

Thanks