运行引用excel API的.net应用程序需要安装excel? [英] do clients running .net applications that reference the excel API need to have excel installed?

查看:170
本文介绍了运行引用excel API的.net应用程序需要安装excel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更具体地说,我指的是COM组件Microsoft.Office.Interop.Excel.dll。



如果客户端没有安装excel他们的计算机,.net应用程序甚至会运行,或者刚刚崩溃,尝试访问dll?



另外,是否可以解决任何可能的限制通过部署此dll的副本以及.net应用程序? (假设这样做是合法的。)

解决方案

如果你是usig Excel COM Wrappers,并且你调用任何函数您必须在该计算机中安装Excel。互操作DLL只是调用Office公开的COM服务器,实际上最确定的是在你的电脑中,如果你测试这个,你会在任务管理器中看到EXCEL.EXE进程。



所以是的,你需要安装Excel来互操作。


To be more specific, I'm referring to the COM component Microsoft.Office.Interop.Excel.dll.

If clients don't have excel installed on their computer, would the .net application even run or just crash the moment there is an attempt to access the dll?

Also, is it possible to work around any possible limitations by deploying a copy of this dll along with the .net application? (Assuming that it's legal to do so.)

解决方案

If you're usig Excel COM Wrappers and you call any of the functions therein, you must have Excel installed in that computer. The interop DLLs just call the COM servers exposed by Office, in fact most surely in your computer if you test this you'll see an EXCEL.EXE process in the Task Manager.

So yeah, you need Excel installed for interop to work.

这篇关于运行引用excel API的.net应用程序需要安装excel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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