Forum


Replies: 3   Views: 3882
Table in template
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 kpholland  · 26-02-2016 - 10:50

I have one array that fills our table in our Word Template. That works great (see previous topic :) )  Is it possible to give the first row different table ($paramsTable) settings?

I have tried to split the header and the content in two tables but then there is a hole between the tables in the Word template..

$Array_Table_Value[1]['JNR']    = 'Year';
$Array_Table_Value[1]['NAAM']   = 'Name';

$Array_Table_Value[2]['JNR']    = 2016;
$Array_Table_Value[2]['NAAM']   = 'Pino';

$Array_Table_Value[3]['JNR']    = 2016;
$Array_Table_Value[3]['NAAM']   = 'Elmo';

$Array_Table_Value[4]['JNR']    = 2016;
$Array_Table_Value[4]['NAAM']   = 'Bird';
 

$paramsTable = array(
    'border' => 'single',
    'tableAlign' => 'center',
    'borderWidth' => 10,
//    'borderColor' => 'B70000',
    'textProperties' => array('bold' => false, 'font' => 'Verdana', 'fontSize' => 10),
);