Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you edit a word document with Java

Tags:

java

ms-word

How can you edit a word document with Java?

like image 535
user302267 Avatar asked Mar 22 '10 18:03

user302267


People also ask

Can Java read Word document?

Syncfusion Java Word library (Essential DocIO) is used to create, read and edit Word documents programmatically without Microsoft Word or interop dependencies. Using this library, you can read and edit Word document in Java application.


2 Answers

Take a look at http://poi.apache.org/

like image 73
Bryan Denny Avatar answered Sep 17 '22 07:09

Bryan Denny


You can use COM to do that also. Use a Java COM interop library like JACOB (JAVA COM BRIDGE): http://sourceforge.net/projects/jacob-project/

Here is a tutorial using Jacob to talk to MS Word: http://www.land-of-kain.de/docs/jacob/

The other library that looks promising and that will solve the cross-platform problem is J-Interop: http://www.j-interop.org/.

like image 30
Hannes de Jager Avatar answered Sep 17 '22 07:09

Hannes de Jager