Forum


Replies: 3   Views: 4298
Problems with variable replacement
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  · 18-11-2015 - 10:41

Hello,

We recommend you to do it in two steps: first create a document, import the headers/footers and save it; and then open it again using the CreateDocxFromTemplate class and replace the placeholders

The method replaceVariableByText is not available in the CreateDocx class.

Regards.