Open TommyB1992 opened 2 years ago
Try with $tpl->setComplexBlock(), I also tried to add tables to a template using ->setComplexValue(), but it just didn't work.
If you still get the error, you can try to create a Table object directly.
$table = new Table(...);
$table->addRow(); $table->addCell(... $table->addCell(...
$tpm->setComplexBlock('placeholder', $table'); $tpl->saveAs(...);
Describe the Bug
When I try to insert a generated table in a processed file opened throught TemplateProcessor I can't open it in microsoft word but in open office yes. It's the same with online services: the online service provided by microsoft for managing .docx files doesn't work, others services (that probably uses open office in the background) yes.
Steps to Reproduce
Current Behavior
I can't open the file in microsoft word (I have a generic error alert).
Context
Thank you