Forum


Replies: 2   Views: 3310
Params
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 eramazzini  · 11-04-2013 - 12:12

Hi i have a problem with the professional vesion. I can't write a table in the template.... please help me!!

Thanks

Estuardo Ramazzini

<?php

$legends = array(
'legend1' => array(10, 11, 12),
'legend2' => array(30, 21, 12),
'legend3' => array(40, 41, 42)
);

/////////////////TABLA
$paramsTable = array(
'data' => $valuesTable,
'TBLLOOKval' => 'ffff01E0',
'TBLSTYLEval' => 'Tablanormal',
'TBLWtype' => 'center',
'TBLWw' => '50',
'border' => 'single',
'border_sz' => 20,
'border_spacing' => 0,
'border_color' => 'ff0000',
'jc' => 'center',
'size_col' => 1200
);

$docx->addTemplateVariable('TABLA','plantillas/pt_orden_produccion.docx',$paramsTable);

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

$docx->createDocx('example_header_and_footer.docx');
echo "<a href='example_header_and_footer.docx'>Descargar RTF</a>";

print_r ($valuesTable);

?>