Replies: 1   Views: 4834
Two dimension table replacement
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 javeez  · 02-12-2015 - 06:29

We are currently evaluating the product and we are using the demo version, and we struggle to implement one thing after successfullyimplement all other requirements.
We want to fill a table with two dimensional array, for instance the table will have subtable inside one of its cell.
Is it possible to do it? and please guide us on how doing it.

Posted by admin  · 02-12-2015 - 09:34


Yes, you can do it easily:

· If you're generating the document from scratch use the WordFragment class or the embedHTML.

· If you're using a template with the replaceVariableByWordFragment method or even replaceVariableByHTML.

Or you can mix both is approaches if needed.

Please check the API methods and included examples on