Forum


Replies: 1   Views: 3831
How do i set the font color for a cell/row with addtable?
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 jamie3000  · 24-10-2016 - 13:51

Hi Guys,

I'm using the trail version (which I think is Pro) and I'm creating a cell/row with AddTable but I'd like to change the foreground font but can't see how in the docs or examples?

$valuesTable[] = array(array('value' => $BenefitData['HeaderForTable'], 'colspan' => '2', 'backgroundColor' => '2E74B5'));

I see options such as backgroundColor but no color or foregroundColor?

How can I do this?

Thanks!

Jamie