Java 连接到 Microsoft Windows Office 套件/之间?
我在其他地方读到(“hazzen”的回复 此处),.NET 具有“此处概述的整个 Office 套件的绑定,允许您编写可以从 Office 调用的基于 COM 的方法。它旨在实现自动化,但您也可以编写。您想要的任何托管代码并让 Excel 调用它。”
我对 Java 也有同样的兴趣。 我目前的解决方案运行一个启动 Java 的标准 Windows 程序,任何结果基本上都会发送到标准输出,中间程序捕获这些结果并将结果反馈到 Excel - 也使用相当于标准输出的内容。
一定有更好的方法!
Java有这样的“绑定”吗?
我也很高兴收到有关此类集成问题的网络文章或您所教授的任何内容。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JCOB,j-Interop 和 J-Integra 可能会做类似的事情。 奥卡姆手电筒:
Java/COM、Java/Win32 集成资源 有更多链接。
JCOB, j-Interop and J-Integra might do something like it. Ockham's Flashlight:
Java/COM, Java/Win32 Integration resources has more links.
Apache POI 具有与 Excel 的 Java 绑定,效果非常好。 它还支持 Word/Outlook/PPT,但我记得 Excel 集成是它的强项。
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.