[英]Updating Excel file
How can I add new values to an uploaded application/vnd.ms-excel
file in C#? 如何在C#中将新值添加到上载的
application/vnd.ms-excel
文件中? Can anybody help? 有人可以帮忙吗?
If you're using Excel 2007/2010 you can make use of Microsoft's added XML standard with various third party libraries. 如果您使用的是Excel 2007/2010,则可以使用Microsoft添加的XML标准以及各种第三方库。
I've used EPPlus in the past, but its license dictates if you release your project to the public you must release its source as well. 我过去曾使用过EPPlus,但其许可证规定,如果您向公众发布项目,则还必须发布其源代码。
http://epplus.codeplex.com/ http://epplus.codeplex.com/
For that reason I've used ClosedXML to manipulate excel files (.xlsx and .xlsm). 因此,我使用ClosedXML处理excel文件(.xlsx和.xlsm)。 You open workbooks from a disk location, or from a filestream.
您从磁盘位置或文件流中打开工作簿。
http://closedxml.codeplex.com/ http://closedxml.codeplex.com/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.