Forum


Replies: 5   Views: 3489
Define width for table colums
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 nachtschicht  · 11-04-2013 - 12:13

... and another problem. When I apply the table width array as outlined in the Table_size_cols.php to a regular table - everythink works. If I try to apply it to a table like described in TableStyled.php it is beeing ignored.

For TableStyled liked tables only single values are exepted in the params array:

[code]
$docx_params_table_1 = array(
'border' => 'single',
'border_sz' => 2,
'border_spacing' => 0,
'border_color' => '000000',
'size_col' =>[b] 2500[/b]
);
[/code]

Arrays are not going to work:

[code]
$docx_params_table_1 = array(
'border' => 'single',
'border_sz' => 2,
'border_spacing' => 0,
'border_color' => '000000',
'size_col' => [b]array(3000,1500,1500)[/b]
);
[/code]

How can I apply different column width to styled tables?

Kind regards,