Microsoft.Office.Interop.Excel.dll - 服务器不列入已安装Excel [英] Microsoft.Office.Interop.Excel.dll - Server doesnot have Excel installed

查看:823
本文介绍了Microsoft.Office.Interop.Excel.dll - 服务器不列入已安装Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我生成使用Microsoft.Office.Interop.Excel.dll我的部署服务器Excel文件不允许安装Excel的?



我知道其强制安装Excel,所以我的问题是:



有没有办法,我们可以在没有安装Excel的


部署相同的代码什么办法?
解决方案

我知道,它的强制安装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:

这篇关于Microsoft.Office.Interop.Excel.dll - 服务器不列入已安装Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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