Thanks for this patch :)
In an other part, is there a solution for this (last post) : http://www.phpdocx.com/forum?vasthtmlaction=viewtopic&t=55.00 ?[/quote]
This is the only solution i had but it works fine
include_once(’./helpers/phpdocx/classes/CreateDocx.inc’);
$NomDocument = ‘blabla’;
$folder = “”;
$docx = new CreateDocx();
$docx->setEncodeUTF8();
$Template = “doctmp.docx”;
$docx->addTemplate($Template);
$docx->createDocx(’tmpdoc’);
$docx = new CreateDocx();
$docx->setEncodeUTF8();
$docx->addText(’2 DOCX content’);
$docx->createDocx(’doctmp_2’);
$docx = new CreateDocx();
$docx->setEncodeUTF8();
$Template = “doctmp_1.docx”;
$docx->addTemplate($Template);
$docx->createDocx(’tmpdoc_2’);
$docx = new CreateDocx();
$docx->setEncodeUTF8();
$docx->addText(’DOCX content’);
$docx->addDOCX(’tmpdoc.docx’);
$docx->addDOCX(’doctmp_2.docx’);
$docx->addDOCX(’tmpdoc_2.docx’);
$docx->addText(’reDOCX content’);
$docx->createDocx($NomDocument);
In my application I add more than 50 documents made with different template and it work fine and fast
++