Posted By:
Adrian_Goldberg
Posted On:
Monday, December 10, 2001 08:33 PM
see the Jacob project
http://danadler.com/jacob
Ive used this bridge to call Word and Excel from Java code.
eg -
import com.jacob.com.*;
import com.jacob.activeX.*;
ActiveXComponent wo = new ActiveXComponent("Word.Application");
Object wrdo = wo.getObject();
try {
Dispatch.put(wrdo, "Visible", new Variant(true));
Object documents = wo.getProperty("Documents").toDispatch();
Object docs = Dispatch.call(documents, "Open", filetoopen).toDispatch();
}