Forum


Replies: 2   Views: 3496
Addtable in phpdocx 3.2
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 pphornet  · 05-03-2013 - 16:01

Hello!
Thank's for PHPDocX 3.2 PRO for your team! Each time better and better...)
But I still can not make a fixed height for the rows in the table

for example, how to change the code so that i can control the height of rows?

require_once 'classes/CreateDocx.inc';

$docx = new CreateDocx();

$valuesTable = array(
array(
11,
12
),
array(
21,
22
),
);

$paramsTable = array(
'border' => 'single',
'border_sz' => 20
);

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

$docx->createDocx('example_table');

====================================

I try this solution, but the height rows is not changed
(cells width working fine)

CODE above and...

$trProperties = array();
$trProperties[0] = array('height' => 2500);
$trProperties[1] = array('minHeight' => 1000, 'height' => 2500);
$docx->addTable($valuesTable, $paramsTable, $trProperties);


how to control the height of the row table?

Posted by admin  · 11-04-2013 - 12:13

Hello,

There was a little bug in the row height (an extra white space in the attribute value)...it worked for Word 2007 but not for newer versions.

Anyhow we fixed so it should work now.

Regards.