tags:

views:

46

answers:

4

I need a simple to use / good docs / good support java lib to read and write word documents, namely word 2007 support (and word 2010 support planned).

As the project I'm in has budget and time-constraints I don't mind buying a commercial lib :) I know they are XML files in a somewhat open format but I really don't want to waste time understanding the XML specification.

Any good recommendations from happy customers?

(Right now my choice is going to Aspose.Words for Java)

A: 

Apache POI

Sean Owen
A: 

I used Apache POI. Don't know about word documents, but I had absolutely no problem with Excel, both with reading and writing.

http://poi.apache.org/

Nikita Rybak
Right now I only need word 2007 / 2010 support. Apache POI doesn't seem to be currently up-to-date (HWPF is orphaned with no leader :))
AlfaTeK
A: 

You could try Docmosis which is based on the OpenOffice capabilities for importing and exporting documents of various formats. Docmosis will let you populate documents word documents, but does that cover your "read" requirement?

jowierun
A: 

docx4j will help. Hard to do anything meaningful with any of the suggested APIs without a rudimentary understanding of the file format though.

plutext