[code]
<?php
require_once ‘../../classes/CreateDocx.inc’;
$docx = new CreateDocx();
$paramsTable = array(
‘border’ => ‘none’,
‘border_spacing’ => 5,
’size_col’ => ‘3000′,
‘TBLWw’ => ‘500′,
‘font’ => Arial,
‘border_sz’ => 10
);
$text[] =
array(
‘text’ => ‘Name : ‘,
‘b’ => ’single’,
);
$var=$docx->addElement(’addText’,$text);
$tabulka1 = array(
array(
$var,
“John”
),
array(
$var,
“Kate”
),
);
$docx->addTable($tabulka1, $paramsTable);
$docx->createDocxAndDownload(’example_table’);
[/code]