Forum


Replies: 6   Views: 3396
Custom table styles
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 jc.021286  · 11-04-2013 - 12:12

If there is one thing I know is that the product is amazing, documentation is real poor.

From my understanding, if you hover your mouse over a style, it will give you the style's name. Then place that style name into the section below (remove all spaces).


$paramsTable = array(
'TBLSTYLEval' => 'LightListAccent1PHPDOCX',
'jc' => 'center',
'size_col' => $widthTableCols
);

$docx->addTable($valuesTable, $paramsTable);

$docx->createDocxAndDownload('./Output/example_pie_chart');


The 'LightListAccent1PHPDOCX' should give you the 8th item there.
jc