Forum


Replies: 2   Views: 3281
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  · 22-03-2011 - 23:40

Hi, now I use PHPDOCX, but a I have problem about param, in documentations i don't see this param, for exmple

paramsImg this params are:

'name' , 'scaling', 'spacingTop', 'spacingBottom' ,'spacingLeft' => 100,'spacingRight' => 0,'textWrap' => 1, 'border' => 1,
'borderDiscontinuous' => 1, only, what happend with the others?

thanks

Esturdo Ramazzini

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);

?>