Gendoc2 is an opensource solution that allows you to insert in OpenOffice or Docx document, content from EMF datasources (Models or XMLs)
The leitmotiv of Gendoc2 is What You Write in your document Is What You will Get in the generated one (WYWIWYG).
Example for this code :
After generation :
As we can see the style (Heading) of the generated text is the same as the style used for the code.
Gendoc2 offers a lot of possibility to generate Images, tables, bullets etc... For more details about gendoc2 I recommend you to read the gendoc2 tutorials available at these addresses :
Gendoc2 Developer Tutorial