Forum


Replies: 3   Views: 3262
Empyt docx files
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 rjonge  · 22-11-2011 - 15:29

Hello,

I just purchased the pro version. (v2.4)

Every document I generate is empty. Even if I try the examples. I did not get any errors. does anybody know what could cause this problem?

for example:

require_once '../../classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->addText( 'This is a test.' );
$docx->createDocxAndDownload('newFile');

I can download newFile.docx as expected. But it's empty when opening in Word 2007 (windows). If I open the newFile.docx in a other text editor it's also a empty file.