在服务器上杀死Excel.EXE [英] Killing Excel.EXE on server

查看:114
本文介绍了在服务器上杀死Excel.EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

如何正确地清理C#中的Excel互操作对象

假设ASP.NET Web应用程序在服务器上生成自动化的Excel报表。一旦处理结束,我们如何杀死服务器端的Excel.EXE。我正在提出这个意图,因为我相信垃圾收集器即使在Excel文件关闭后也不会清理Excel的可执行文件。

Suppose a ASP.NET web application generates automated Excel Reports on the server. How do we kill a server-side Excel.EXE once the processing is over. I am raising this purposely, because I believe that the Garbage Collecter does not clean the Excel executable even after the Excel file is closed.

任何指针都会有帮助吗? p>

Any pointers would be helpful?

推荐答案

对不起,这个,我不是想聪明,但是...不要把办公室在服务器上!!!

Sorry to say this, and I'm not trying to be smart, but... don't put office on the server!!!

如果我已经正确理解了! :)

That's if I've understood correctly! :)

编辑:即使我已经被标记为这个,我永远不会在服务器上的办公室 - 过去已经证明了方式对我的屁股的痛苦。

Even though I've been marked down for this, I will never ever advocate running Office on the server - it has proven way too much of a pain in the ass for me in the past.

说完了,相同的现在适用于我和Crystal Reports; - )

Having said that, the same now goes for me and Crystal Reports ;-)

这篇关于在服务器上杀死Excel.EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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