Forum


Replies: 7   Views: 3461
Addelement and addtext
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 admin  · 11-04-2013 - 12:12

Hi,

This is a piece of code of a new example that will be included in phpdocx pro 2.2 that do this feature:

$paramsHeaderTextTable[0] = array(
'text' => 'Text',
'b' => 'single',
'sz' => 14
);

$table[] = array(
$docx->addElement('addText', $paramsHeaderTextTable),
'Value 2',
'Value 3',
);

Regards.