Forum


Replies: 2   Views: 4088
Return true on createdocx success
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 liam.whan  · 12-10-2012 - 00:41

Hi there,

is there a boolean attached to the CreateDocx method that evaluates whether a the document output has been successful or not?

thanks in advance.


LW


Posted by admin  · 11-04-2013 - 12:13

Hello,

The way to check if the file has been created is to use file_exists function, or a similar one. But if you need to get a return, you can add it on line 4587 in CreateDocx.inc file.

Regards.