Forum


Replies: 3   Views: 4110
Replace docvariable fields (quick parts) not working with latest 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 danesh  · 01-10-2014 - 09:02

I have downloaded latest version and was trying to replace DOCVariable field defined as $name$ but value was not get updated by $docx->replaceVariableByText() method. When I dump variables using $docx->getTemplateVariables() method I can see $name$ listed as a variable but unable to replace it's value using replaceVariableByText() method. Please let me know whether PhpDocX able to replace DOCVariable field variables defined as placeholders similar to $name$ Cheers, Danesh