Hi:
When I call createDocx the file output is fine but when I call createDocxAndDownload Word 2007 Windows 7 Home Premium x64 displays an error message saying that the file is corrupted.
Any ideas? Thanks.
Hi:
When I call createDocx the file output is fine but when I call createDocxAndDownload Word 2007 Windows 7 Home Premium x64 displays an error message saying that the file is corrupted.
Any ideas? Thanks.
Hi :
My server version is Apache 2.4.4, PHP version is 5.4.12, mysql version is 5.6.12. windows is win7 64 bit. Looking forward to your reply! Thanks.
Hi:
I look at the http://www.phpdocx.com/en/forum/default/topic/347, before CreateDocxAndDownload, add a statement: ob_clean (); , download a word can correctly display, thank you very much for the Forum.
Hello,
If you need to use ob_clean to get a correct DOCX file, it's because your server is adding some string into it; maybe some notice, warning or header. Although you can use this function to solve it, we recommend you to remove that line, check your server logs, edit the DOCX using an HEX editor and check its content.
Regards.