Replies: 2   Views: 3034
Dynamic no of rows in template
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 karthik  · 25-04-2011 - 08:00

How can I add multiple rows in template. that is single row of data in template will be reproduced based on number of rows in an array.
Is it possible?

Posted by acunnington  · 17-04-2013 - 14:03


I am currently working on a similar project, where I need to create a dynamic number of rows.

I have found a reasonably suitable workaround is to create a table for each row, using the same dimensions each time. Encapsulate your tables within blocks, and then remove the blocks that you don't need. I am just facing an issue at the moment with excessive spacing between blocks.