Excel dll for Microsoft.Office.Interop.Excel

会有一股神秘感。 提交于 2019-11-27 06:11:49

问题


We want to use Microsoft.Office.Interop.Excel in our web application. Everything works fine on our local machines, but on our test machine we're running into problems. It has neither Visual Studio nor Office installed on it.
We're using .NET framework 2.0 and the server is running on Windows Server 2003 with IIS6.

Is there a dll that needs to be installed on the machine or added to the bin of the web application?


回答1:


You will need to have MS Office and the Office Interop assemblies installed on your server in order for that to work.




回答2:


I'm pretty sure that you will need to have Office installed on the machine it's runnnig on. At least that's my experience from building desktop apps that uses Office.Interop




回答3:


Please go through the following URLs for redistribution:

How to make changes in references

Where to get distribution

This may help your suituation. And also according to the distribution page, you also need to install office also.




回答4:


OpenXML?

I got it working at the moment to create Office 2007/Open Office spreadsheet files.

  1. Point to table
  2. Include column headers - optional parameter
  3. Detect data type - optional parameter
  4. Stream to user or save to file system or save to file system then immediately download.
  5. Outcomes an Excel file with cells that are detected as numbers / strings.


来源:https://stackoverflow.com/questions/564443/excel-dll-for-microsoft-office-interop-excel

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