Java中是否有OLE自动化? [英] Is there OLE Automation in Java?

查看:225
本文介绍了Java中是否有OLE自动化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在Java中使用OLE Automation吗?如果没有,为什么在Java中是不可能的?

Is it possible to use OLE Automation in Java? If not, why is it not possible in Java?

我希望以不同格式自动导出excel电子表格(即.csv等)感谢您提前回答:

I'm looking to automate the exporting of excel spreadsheets in different format (ie, .csv etc...)

推荐答案

请使用 JACOB 。但是,由于没有记录得很好,性能不是最好的,所以会有一些痛苦。根据您要定位的Windows版本,还可能难以正确地为您的环境运行。如果您正在构建可扩展的Web应用程序,我绝对不会使用它。另一个选择将是 Apache POI ,这真的来自早期根源,并且被用于许多像JBoss Drools这样的生产就绪工具。如果您决定使用JACOB,那么我建议您阅读此线程:

You can use JACOB. But there will be some pain involved as it's not documented very well and the performance is not the best. It can also be hard to get it running correctly for you environment depending on which version of Windows you are targetting. I would definitely not use it if you are building a scalable web application. Another option would be Apache POI which has really come a long way from its early roots and is used in alot of production ready tools like JBoss Drools. If you decide to go with JACOB then I recommend you read this SO thread:

Is there a good reference for using OLE Automation (from Java)?

这篇关于Java中是否有OLE自动化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆