Hi,
I have a requirement, in which I have a docx file (almost 150 pages) containing images, text and tables, which will be used by my program as a template. My program should read it and insert new tables and modify some of the existing tables with data coming from DB.
I am able to modify existing table using docx4j, but insertnig new tables (number of tables is also dynamic, and no. of rows in each table is also dynamic). These tables need to be inserted at placeholders marked in document at various places... Is it possible using docx4j? Could you give me some pointers on how to perform this?
Could I use an approach, like I sequentially read source document and copy the contents to destination document, if a placeholder appears, take control to insert a table in the destination document, and then come back to source document to complete the rest of document?
Thanks in advance,
Vaish