i have 2 documents. One is full with tableTemplates and the other contains header/footer.
The Templates in doc1 have all the same structure:
-Firs Line: A static, individual name for that table
-Next Line: A mergeField, which will be the heading after the template is filled
-Next Lines: The Table itself, containing 2 rows, x columns, and a mergeField in each cell
Now i need to search doc1 for the template i need, using just the name of it. Then i need to copy the header-to-be and the table below it (not the name above) and insert it in doc2 where i fill the mergeFields.
doc1 should be able do contain an almost infinte amount of templates and not only tables. I hope there is an possibility to copy anything with the same logic used to copy the tables,