I have the header in level 2, I list the width of the columns, if params columnWidht is dimensional array?
Thank you!
I have the header in level 2, I list the width of the columns, if params columnWidht is dimensional array?
Thank you!
Hello,
This is a sample of using columnWidths:
$valuesTable = array(
array(
'Title A',
'Title B',
'Title C'
),
array(
'Line A',
$link,
$image
)
);
$paramsTable = array(
'tableStyle' => 'LightListAccent1PHPDOCX',
'tableAlign' => 'center',
'columnWidths' => array(1000, 2500, 3000),
);
$docx->addTable($valuesTable, $paramsTable);
Regards.
No, I have 2 level header. See in the picture
https://cloud.mail.ru/public/LU3f/XATebEGak
Hello,
We recommend you to use the embedHtml method or a template to create tables like the one you refer.
Regards.