使用epplus c#写入活动的excel [英] Write to active excel using epplus c#

查看:78
本文介绍了使用epplus c#写入活动的excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai all,

excel打开时可以将数据写入excel吗?使用EPPLUS库



我可以使用互操作服务,但问题是无法关闭任务管理器中的EXCEL.exe。

我试图以很多方式关闭,但仍然失败。



所以,现在我转移到EPPLUS库,因为EPPLUS创建或添加excel数据然后自动关闭它。

现在的问题是,当excel打开时,我无法将数据写入excel。

有可能吗?

谢谢

Hai all,
Is possible to write data to excel while excel is open? Using EPPLUS library

I can do it if use interop service, but the problem is can't close EXCEL.exe in task manager.
I have tried to close with many way, but still get failed.

So, now i move to EPPLUS library, because EPPLUS create or and add excel data and then close it automatically.
Now the problem is, i cant write data to excel while excel is open.
Is possible to do it?
Thank you

推荐答案

你不需要放弃互操作。您需要做的就是发布Excel对象。

如何?请参阅:使用Interop后发布Excel [ ^ ]

更多您可以使用 Google 找到有关您的问题的信息[ ^ ]。
You don't need to give up with Interop. All you need to do is to release Excel objects.
How? Please, see: Releasing Excel after using Interop[^]
More information about your issue you'll find using Google[^].


这篇关于使用epplus c#写入活动的excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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