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.
$docx->createDocxAndDownload('../word_documents/match_forms/'.$folderfilename); //we send the resulting document to the browser
This terminates processing of the php after downloading; is this by design? Simple CreateDocx allows the program to continue.
Thanks,
Colin
Hello,
When you download the document, phpdocx uses the header function to achieve it. After a header is sent with PHP, you can't print anything else in the screen.
Of course you can create the document using createDocx, do anything you need and download it with your own code.
Regards.
Thanks. Or I could write php to direct to a new page I guess right after the download.
Colin