Forum


Replies: 1   Views: 3768
Copy a row of table and append to the other or same 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 vishal mote  · 17-06-2015 - 13:12

I am using templates feature from your service. This is regarding table and rows issue. There will be only one row will be given for replacement but from database there will be n number of rows with same format of first row. Is there way to copy a first row then replace variable by text in table and then add coppied row to the end of table so can ireplace variable by text in next row of table.

Posted by admin  · 17-06-2015 - 13:45

Hello, You can use the method replaceTableVariable (http://www.phpdocx.com/api-documentation/templates/replace-table-variable-Word-document) to replace a table row N times. You can replace it by texts, WordFragments or new placeholders to be replaced after using the other replace methods. Regards.