Forum


Replies: 1   Views: 3367
Changing background color of cells in existing table
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  · 19-12-2016 - 07:25

Hello,

DOCXCustomizer, available in Premium licenses, allows changing styles on-the-fly. For example to set custom cell backgroundcolors.

The replaceTableVariable method allows to add new rows and replace placeholders in it.

To use background colors, they must be already set it in the template or create the table from scratch (using addTable, embedHtml or WordFragments).

Regards.