Forum


Replies: 1   Views: 3291
Size_col array not working
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 erikdrums  · 20-04-2012 - 13:49

Should this simple example not deliver a table with 3 different sized rows?
I get 3 of the same size and just can't see why. Any help would be greatly appreciated.
I'm viewing the docx's in Microsoft Word 2008 on a mac

$valuesTable = array(
array(
'Title A',
'Title B',
'Title C',
),
array(
'Line A',
'Line B',
'Line C',
)
);

$paramsTable = array(
'TBLLOOKval' => 'ffff01E0',
'TBLSTYLEval' => 'Tablanormal',
'TBLWtype' => 'center',
'TBLWw' => '50',
'border' => 'single',
'border_sz' => 20,
'border_spacing' => 0,
'border_color' => 'ff0000',
'jc' => 'center',
'size_col' => array(3000, 2000, 100)
);

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