Java connection to / between Microsoft Windows Office Suite?

我与影子孤独终老i 提交于 2019-12-07 19:44:24

问题


I read elsewhere (a response by "hazzen" here) that .NET has "a binding for the entire Office suite outlined here that allows you to write COM-based methods that you can call from Office. It is intended for automation, but you can write any managed code you want and have Excel call into it."

I'm interested in the same thing for Java. My present solution runs a standard Windows program that launches Java, whereupon any results are essentially sent to standard out and the intermediate program captures these and feeds the result back in to Excel - also using what amounts to std-out.

There has to be a better way!

Is there such a "binding" available for Java?

I'd also be pleased by any pointers to web articles or whathaveyou that teach about this kind of integration issue.


回答1:


JCOB, j-Interop and J-Integra might do something like it. Ockham's Flashlight: Java/COM, Java/Win32 Integration resources has more links.




回答2:


Apache POI has java bindings to Excel which work quite nice. It also does Word/Outlook/PPT, but I recall Excel integration being its strongpoint.



来源:https://stackoverflow.com/questions/396448/java-connection-to-between-microsoft-windows-office-suite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!