且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Microsoft.Office.Interop.Excel.dll - 服务器不列入已安装Excel

更新时间:2022-10-20 19:21:36


我知道,它的强制安装Excel,所以我的问题是有,我们可以无需安装Excel或任何部署相同的编码方式另一种方法建议?


块引用>

没有,这是强制安装Excel。但是,你已经知道,因为它是如何开始的问题。



库(Microsoft.Office.Interop.Excel.dll)的名称是一个很好的线索。它说的互操作,这是短期的互操作性。而且你不能用的东西不存在互操作。因此,Excel必须安装才能使用,便于使用Excel互操作的DLL。



这没有任何逻辑意义,即使你忽略所有的法律问题



如果你真的无法安装Excel,你需要找到一些其他的方式来创建Excel文件。有迹象表明,声称这样做一些图书馆,但他们有自己的局限性。例如:




I'm generating an Excel file using "Microsoft.Office.Interop.Excel.dll" and my deployment server does not permit to install Excel?

I know that its mandatory to install Excel, so my question is:

Is there any way that we can deploy the same code without installing Excel?

I know that its mandatory to install Excel, so my question Is there way that we can deploy same code without installing Excel or any other way suggested?

No, it's mandatory to install Excel. But you already know that, since it was how you started the question.

The name of the library (Microsoft.Office.Interop.Excel.dll) is a good clue. It says interop, which is short for interoperability. And you can't interoperate with something that doesn't exist. Therefore, Excel must be installed in order to use a DLL that facilitates interoperation with Excel.

This doesn't make logical sense, even if you ignore all of the legal questions.

If you really are not able to install Excel, you will need to find some other way to create Excel files. There are some libraries that claim to do this, but they have their limitations. For example: