开发者

java and excel question

开发者 https://www.devze.com 2022-12-11 09:18 出处:网络
is it possible to create a java application that will import excel files . execute excel macros and give the output in java gui. please give any advice u can on creating such an application. i will st

is it possible to create a java application that will import excel files . execute excel macros and give the output in java gui. please give any advice u can on creating such an application. i will start creating t开发者_如何学Pythonhe application after your input


Apache POI can read Excel files and it should expose the code of the macros, too. To actually run the macros, you'll need a VBA interpreter and a COM server. I doubt that you'll be able to make this work for complex macros (see this discussion).

Instead, try JaCob which allows you to talk to Excel from Java. This way, you should be able to load a work sheet, have Excel run the macros for you and then, you can examine the results.


Does this API do what you need?


You can try java Excel automation,

Here is a useful link: http://www.jacozoom.com/en_jacoZoom.shtml

0

精彩评论

暂无评论...
验证码 换一张
取 消