do clients running .net applications that reference the excel API need to have excel installed?

故事扮演 提交于 2020-01-16 19:00:07

问题


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.)


回答1:


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.



来源:https://stackoverflow.com/questions/14729861/do-clients-running-net-applications-that-reference-the-excel-api-need-to-have-e

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!