You might want to throw an exception when the temp file that is used to create a template based docx cannot be saved.
File: CreateDocx.inc, Line: 2566.
ZipArchive.close() returns false, when the file cannot be saved. In this case the unaltered template is copied to the destination folder with none of the variables replaced. Since there is no exception and no warning or error messages in the log, this is very hard to spot. It did take me quite some time to figure that out.
System: Windows 7, IIS
Regards
Markus