如何使用 POI 更新打开的 excel [英] how to update an open excel using POI

查看:41
本文介绍了如何使用 POI 更新打开的 excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用 Apache POI 以及通过在其他 excel 上运行的 vba 代码更新我系统上已打开的 excel?

Is there a way to update an excel which is already open on my system using Apache POI and also through vba code running on some other excel?

推荐答案

Apache POI 库 没有支持在 Excel 文档中读取、写入或执行宏.

The Apache POI library does not support reading, writing, or executing macros in an Excel document.

Apache 在其内存模型中存储工作表的内部表示.如果您尝试让两个不同的应用程序写入同一个 Excel 文件,则会出现数据并发问题.

Apache stores an internal representation of the worksheet in its memory model. You will have data concurrency issues if you try to have two different applications writing to the same Excel file.

这篇关于如何使用 POI 更新打开的 excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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