I am using the Microsoft.Office.Interop.Excel
reference in order to have some manipulations with excel files, like adding columns, locking cells, protecting with password etc...
Now I have to use this code on a server that doesn't have office installed on it, so I don't really know for sure if the code using this reference will be able to run there. So is there a way of doing all these actions on excel files on a server that doesn't have office installed on it ? Should I use another library or is there a way that the Microsoft.Office.Interop.Excel
reference to work with no office installed ?
You can use EPPlus. It works with Open Office Xml format. No need to install any Office component on the server. https://github.com/EPPlusSoftware/EPPlus
ClosedXML是另一个用于操作 Excel 文件的开源库(具有类似于 COM 对象模型的 API)。
Another open-source option is spreadsheetlight . I have been using it for quite some time now.
EasyXLS也是一个 Excel 文件操作库,涵盖了您提到的所有请求。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.