Forum


Replies: 5   Views: 3129
Createdocxanddownload
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 Walter Florencio  · 08-12-2014 - 22:31

During testing I save the teste_template file on my web server , however I would that sending the command to create the .docx file, it would open automatically. Searching the saw documentation should use the createDocxAndDownload , however the application is suing indefinitely and does not open the file. What could be wrong ? codes for the analysis below : *============== ... $docx = new CreateDocxFromTemplate('../ModelosWord/mod_APFD_Comu_Juiz_Sem_Fianca.docx'); $docx->replaceVariableByText($variables); $docx->createDocx('../ModelosWord/test_template'); //With this teste_template code file is created on the web server *============= *============== ... $docx = new CreateDocxFromTemplate('../ModelosWord/mod_APFD_Comu_Juiz_Sem_Fianca.docx'); $docx->replaceVariableByText($variables); $docx->createDocxAndDownload('../ModelosWord/test_template'); //With this code the teste_template file is created on the web server , but does not open automatically. *=============