I've been searching from hours how to generate from scratch an Open Office document (but a .doc would be glad, no docx) with a Java API (I'm using Grails). Anyway it seems that every method require a preexisting document to work correctly. I've looked on javaranch (http://www.coderanch.com/how-to/java/AccessingFileFormats) and nothing I've seen meets my desires.
So I ask you the question : is it actually possible to generate a .doc or .odt file from scratch ? Because I find that creating a document outside the code is pretty ugly.
Cheers