do clients running .net applications that referenc

2019-08-17 01:06发布

问题:

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.



标签: c# .net excel com