Forum


Replies: 3   Views: 3892
Table 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 admin  · 04-03-2016 - 14:25

Hello,

UPDATE: The createTableStyle method includes a lot of optiones to apply styles to tables, such as firstRowStyle to apply style only to the first row.

There's no option to format only the first row, but you can set some settings for each cell of the first row using WordFragments.

For complex tables we recommend you to use embedHtml, you can read some samples about tables on http://www.phpdocx.com/documentation/introduction/html-to-word-PHP. Using HTML you can customize the first row of tables.

Regards.