Forum


Replies: 3   Views: 3542
Replacevariablebyexternalfile not working in trial version.
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 pbg@pbgpersonnel.ru  · 14-04-2015 - 13:54

require_once('../../../tools/4.6/lib/log4php/Logger.php'); require_once('../../../tools/4.6/classes/CreateDocx.inc'); $docx = new CreateDocxFromTemplate('TemplateExternalFile.docx'); $docx->replaceVariableByExternalFile(array('EXTERNAL' => 'External.docx'), array('matchSource' => true)); $docx->createDocx('example_replaceVariableByExternalFile_1'); // In output file variable EXTERNAL is empty. //Executed in CLI with php version 5.3.18 and 5.5.9. There are no errors. In browser not working too.