Forum


Replies: 5   Views: 5488
Addtemplate() not working in the pro trial
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 chokehold  · 06-11-2014 - 22:27

My Code which is placed inside DbHandler class: $docx = new createDocxFromTemplate('../documents/kvalitetshaandbog.docx'); $variables = array('virksomhedsnavn' => 'Text which is inserted'); $options = array('parseLineBreaks' =>true); $docx->replaceVariableByText($variables, $options); $docx->createDocx('../documents/example_replaceVariableByText_1');