Forum


Replies: 1   Views: 2358
Styling individual table cells
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 dgray  · 02-08-2019 - 13:39

Last question.

 

I'm very pleased with phpdocx and will probably be purchasing a license once management have seen the results. The only things I'm now struggling with are:

- making text effects (bold or italic) in individual cells using the addTable function.

 - adding Headings (addHeading()) inside tables.

 - I have set table column widths to a fixed size (columnWidths' => array(5000,1900,5000)) however the column widths printed are variable dependent on the content. I need them to be fixed.

I need to get this working to complete the demo that I'm currently doing. I have seen posts about using the addText() function - how would that work in table contents?

Note that I can achieve this with just HTML, but I need to use the cantSplit and tableHeader properties of addTable()