Forgot your password?
typodupeerror
Java

+ - Controlling Microsoft Office from Java, seamlessly

Submitted by sbohmann
sbohmann (921713) writes "Widely ignored, but still fully functional, I recently discovered IBM / Rational's good old Java-COM-bridge. I had long been searching for a way to control Microsoft Office and other Windows Applications from Java, and it turned out that with just minimal effort, doing that is not much more sophisticated than doing it from .Net, because unlike with other solutions, Java classes and packages are created that reflect the bridged COM API, so there is no need to pass method and parameter names as strings.

I was immediately able to start MS Word, create a new document, fill it with text and tables and save it to a file, all from Java code. And, unlike some proprietary tools, this Java-COM-bridge seems to be free to use and integrates excellently with recent versions of Eclipse, despite its age.

Does this support the idea of doing virtually anything in Java, including Desktop Applications, even with COM support?"

"Be *excellent* to each other." -- Bill, or Ted, in Bill and Ted's Excellent Adventure

Working...