This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java API to Microsoft Word? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java API to Microsoft Word?" Watch "Java API to Microsoft Word?" New topic

Java API to Microsoft Word?

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I'm wondering if there is available, preferably as open source freeware, a Java programming interface to Microsoft Office products, especially Microsoft Word.
I am working on a Java application for a client which needs to be able to create Microsoft Word documents from data passed to it.
If there is no such API available, are there any C or C++ API's available? Microsoft's website lists languages like VBA and JScript as interfaceable, but not Java. Apache is working on an API, but the project is in the early stages from what I understand.
Any direction will be greatly appreciated. Thanks.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Since it doesn't seem there are any Java interfaces to Microsoft Word available at this time, although I've read one can access interfaces written in other languages via the Java Native Interface, combined with the fact that Microsoft Word isn't exactly a standardized document format, I've decided to go with Adobe PDF format instead. I've found that there are a number of Java libraries out there which enable the capability to write PDF documents, including several which are open source freeware. I'm wondering if anyone has had experience with any of these packages, and whether these experiences were successful. Thanks.
I agree. Here's the link:
subject: Java API to Microsoft Word?
jQuery in Action, 3rd edition