Forum


Replies: 6   Views: 3500
Template, saves curropt file.
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 fortech  · 11-04-2013 - 12:12

I was taken of the off the doc creating part of the project, but now I'm back.

That appears to clean up the file, however I'm still getting corrupt files (1Kb compared to 23Kb as expected). After removing all my code I got:

$phpdocx = new CreateDocx();
$phpdocx->addTemplate('template.docx');
$phpdocx->createDocxAndDownload("test.docx");

and still got a corrupt file. I'm using Word 2010 on Windows 7 (if that helps). Any insight would be greatly appreciated. Thanks.