Forum


Replies: 6   Views: 4891
Replace table variable
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 admin  · 01-06-2016 - 09:29

Hello,

The method replaceTableVariable allows to add any values in a table; but it doesn't allow to add values then a header in the same table then values again... and so on.

You'll need to generated distinct tables for each set of values or generate the tables dynamically (using addTable or embedHtml or replaceVariableByHTML).

The next version of phpdocx will include, only for Corporate and Enterprise licenses, a new class called DOCXPATH that will ease tasks that the one you need.

Regards.