Forum


Replies: 2   Views: 3147
Broken file on download, but ok on writing to disk?
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 fishka_bmk  · 03-10-2016 - 18:58

Hello, I'm trying to create page, which will answer with a docx file.

This page creating file fine with "$docx->createDocx('file');". But  once i change it to "$docx->createDocxAndDownload('file');" file appears to be broken. And word cannot open it. Only one line change does this.

Any suggestions?