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

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

问题描述

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

解决方案

Apache POI库不支持阅读,写作或在Excel文档中执行宏。



Apache将工作表的内部表示存储在其内存模型中。如果您尝试将两个不同的应用程序写入同一个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?

解决方案

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

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天全站免登陆