Hello Teams,
i know big deal with 6.0 and too todo list
is there any possibility to have docx templating ?
phpWord can give opportuinity to use the templating :
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor('PS_FR.docx') ; => of course change to a templateId
$templateProcessor->setValue('patientName', $patient->get('name'));
templating word is too {{patientName}} .. so no need new language.
and like pdf at the end :
$templateProcessor->saveAs('php://output');
$docxData = ob_get_contents();
i will search if someone can give me direction
Best Regards
i know big deal with 6.0 and too todo list
is there any possibility to have docx templating ?
phpWord can give opportuinity to use the templating :
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor('PS_FR.docx') ; => of course change to a templateId
$templateProcessor->setValue('patientName', $patient->get('name'));
templating word is too {{patientName}} .. so no need new language.
and like pdf at the end :
$templateProcessor->saveAs('php://output');
$docxData = ob_get_contents();
i will search if someone can give me direction
Best Regards
Comment