Forum


Replies: 5   Views: 482
Createdocxfromtemplate not working?
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 admin  · 23-10-2018 - 06:38

Hello,

It seems the path to the DOCX you are trying to use as template doesn't exist or it's not a DOCX but other file (a DOC or any other file). Please check and test the included samples with the included DOCX files. We have tested the class and it's working perfectly.

A DOCX file is a ZIP archive. If you get the following error: Error while trying to open the (base) template as a zip file , is because you are trying to open isn't a ZIP (DOCX) file.

Regards.