Page 1 of 1

Adding row to existing table

PostPosted: Tue Sep 13, 2011 6:05 pm
by aminog
Hello,

In my project, i need to open some docx template and fill it with data from some beans. I have used XmlUtils.unmarshallFromTemplate before, but now I need to fill the table with contents of few beans, and the table size will depend on number of entity objects. Does anyone know how to solve this type of problems, and if you know please, specify a link or code, because i'm newbie in doc4j.

Thanks in advance!

P.S. Happy Programmer's Day!!!! :geek:

Re: Adding row to existing table

PostPosted: Tue Sep 13, 2011 10:46 pm
by jason
Have a look at www.opendope.org

This approach can add a row per entity object.

You'll need to convert your entities to XML, but after you've done that (and set up your template docx), docx4j will do the rest for you.

cheers .. Jason