Forum


Replies: 12   Views: 4537
Addtemplatevariable only creates first row of table
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 Merlin1  · 11-04-2013 - 12:13

I had the same problem with variables, the solution is to define them in microsoft word not just writing $variable$.
You can do this :

1. On the Insert menu, click Field.
2. Note In Microsoft Office Word 2007, click Quick Parts in the Text group on the Insert tab, and then click Field.
3. In the Categories box, select Document Automation.
4. In the Field names list, select DocVariable.
5. In the New Name box, under Field properties, type the name of the document variable.

I hope this helps :)