Forum


Replies: 4   Views: 3619
Replacetemplatevariablebyhtml and createtable
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  · 09-04-2015 - 11:06

Can i use replaceTemplateVariableByHTML for replace variable in template by result of createTable? I use phpdocx 3.7

Posted by admin  · 10-04-2015 - 06:31

Hello, Yes, you can use createTable to generate a new DOCX and then open it as a template and use the replaceTemplateVariableByHTML method. Regards.

Posted by pbg@pbgpersonnel.ru  · 10-04-2015 - 07:11

Thank you very match :)

Posted by pbg@pbgpersonnel.ru  · 10-04-2015 - 13:48

What needs to be input into the function ReplaceTemplateVariableByHTML('VAR', 'block', ???)

Posted by admin  · 13-04-2015 - 07:48

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.