Forum


Replies: 1   Views: 2007
Insert table into 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 turbo124  · 03-04-2011 - 00:44

I have a template document which I currently use addTemplateVariable to populate the data.

However, I have some tables where the row count is variable in my data so I would like to find a solution to populate a Table within a template.

I have two ideas:

1. insert a table with addTable, but how would I mark where to put the table?

2. can phpdocx handle an array with multiple rows and populate the table using a singular marker $array$ ??


Thanks