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

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

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/158706/how-to-properly-clean-up-excel-interop-objects-in-c\">How妥善清理在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.

任何指针将是有益的?

推荐答案

遗憾地说这一点,我不是很聪明,但是... 不要把办公室的服务器上!

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! :)

编辑:虽然我已经下调了这一点,我永远不会曾经的倡导者在服务器上运行的Office - 它已被证明的太多的屁股在过去痛苦的我。

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