Hi guys! Is it possible to use a replaceTableVariable and repeat row as many times as i want (the number of rows is connected with my data array)?
Hi guys! Is it possible to use a replaceTableVariable and repeat row as many times as i want (the number of rows is connected with my data array)?
Hello,
Using replaceTableVariable you can clone and replace rows as detailed on the documentation pages and the included samples: https://www.phpdocx.com/api-documentation/templates/replace-table-variable-Word-document. This is using placeholders to set the values to be added when changing the template.
To clone rows without using replaceTableVariable you can use cloneWordContent, available in Advanced and Premium licenses since the release of phpdocx 6.5.
We recommend you to check documentation and the samples of both methods,
Regards.