Forum


Replies: 2   Views: 3985
Approach to create contracts from word file templates?
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  · 25-06-2014 - 10:16

Hi, The best approach is to use the replaceVariableByWordFragment method. It allows to replace an array of variables by Word Fragments, so there's no limit on you can do. You get the Word fragments of each element you create and replace the placeholders using replaceVariableByWordFragment. Regards.