Hi,
is it possible to load a Template and add a addtional table before creating the docx file?
Regards
Markus
Hi,
is it possible to load a Template and add a addtional table before creating the docx file?
Regards
Markus
Hello,
If you call load a template and then call addTable, the table is added after all existing contents.
You can add WordFragments in the template after or before any existing content:
http://www.phpdocx.com/api-documentation/docx-path/insert-elements-in-docx
Or replace a placeholder by a WordFragment:
http://www.phpdocx.com/api-documentation/templates/replace-variable-word-fragment-Word-document
This WordFragment can be a table, a list, a paragraph, an image... almost any Word content.
Regards.
Unfortunately, I'm not able to test it with the basic version :(
I try to achieve the following
On the first page of the document I use a template. On the second, I would like to create tables depending on the number of customers.
Is this possible with WordFragments?
Regards
Hello,
The easiest solution is using DOCXPath available in Advanced and Premium licenses.
Using the Basic package it can be done adding a placeholder in the template and replacing it by a WordFragment with a table a other placeholder than can be replaced too and so on.
Regards.
Hi,
sounds good. But there is no chance to test the Advanced Version first, right?
Regards