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.
Can i use replaceTemplateVariableByHTML for replace variable in template by result of createTable?
I use phpdocx 3.7
Hello,
Yes, you can use createTable to generate a new DOCX and then open it as a template and use the replaceTemplateVariableByHTML method.
Regards.
What needs to be input into the function
ReplaceTemplateVariableByHTML('VAR', 'block', ???)
Hello,
You can read the documentation for the old phpdocx 3.7 on:
http://old.phpdocx.com/documentation/api-documentation
The method you ask for is available on:
http://old.phpdocx.com/api-documentation/templates/replaces-Word-template-variable-by-HTML
Regards.