Java and MS Word

I have to write some reports in Word from my java program. What is the easiest way to 'connect' to word and create the document. The reason I want Word is becuase of my format requirements. Thanks in advanced-Daniel
[231 byte] By [dgarci2a] at [2007-11-26 18:11:35]
# 1
The apache POI library will read and write word documents. You might also want to consider using the PDF route (check out www.sourceforge.net for a couple of packages).
malcolmmca at 2007-7-9 5:44:13 > top of Java-index,Java Essentials,Java Programming...
# 2
The best route IMO would be to not use Word, but a more open format such as HTML, RTF or PDF.You can get Word APIs for Java, POI being one: http://schmidt.devlib.org/java/libraries-word.html
mlka at 2007-7-9 5:44:13 > top of Java-index,Java Essentials,Java Programming...
# 3
if I want all my reports to have exactly the same format, would it be easier to use XML, HTML, RTF, PDF, DOC?
dgarci2a at 2007-7-9 5:44:13 > top of Java-index,Java Essentials,Java Programming...