Hello,
I try toreplacea variable in adocxcreated(withouttamplate)but I donot succeed...
Here is my code ;:
require_once 'docx/classes/CreateDocx.inc';
$docx = new CreateDocx();
$contenu = "<style>";
$contenu .= file_get_contents ('css/tinymce.css');
// .table1 tr td { border:3px solid black; } .table1 { border-collapse:collapse; color:#6B506B; border:1px solid #2E638E; } </style> ";
$contenu .= " </style> ";
$customLayout = array(
'width' => '11906',
'height' => '16838',
'numberCols' => '1',
'orient' => 'portrait',
'code' => '9',
'marginTop' => '1017',
'marginRight' => '1001',
'marginBottom' => '1417',
'marginLeft' => '1001',
'marginHeader' => '308',
'marginFooter' => '708',
'gutter' => '0'
);
$docx->modifyPageLayout('custom', $customLayout);
$contenu .= '<p>$ma_var$</p>';
$docx->embedHTML($contenu);
$docx->addTemplateVariable('ma_var', 'David Hume');
// echo $contenu;
$docx->createDocxAndDownload('/tmp/'.$_SESSION["pseudo"].'_'.$_SESSION["utilisateur_id"].'/'.time().'ee');
Could you help me ?