Does a good wrapper class and/or library for open xml Excel editing exist?

冷暖自知 提交于 2019-12-02 11:53:29

问题


I'm looking for a nice library for editing and/or generating Excel documents on our Windows server. I feel that the open xml sdk is probably the way to go, but to me the learning curve seems steep and our dev time is limited. I think that it just shouldn't be that difficult to edit an Excel document. I'm ready to reinvent the wheel, but thought it would be worthwhile to ask first whether there is a good project/library out there that wraps open xml and makes interacting with Excel easier.

In this official MS tutorial, the code that retrieves the value of a cell is dozens of lines long.

http://msdn.microsoft.com/en-us/library/bb739834.aspx?cs-save-lang=1&cs-lang=vb#ManipulateOpenXMLExcelPowerPoint_RetrievetheValueofaCellinaWorksheet

That seems incredibly unwieldy, and I'm hoping for a better interface to this functionality.

Note: I've puzzled about how to make this question more StackOverflow friendly, but I don't know of a better way.


回答1:


One of the comments mentioned a wrapper library that is exactly what I've been looking for. closedxml.codeplex.com




回答2:


Try SpreadsheetLight. Disclaimer: I wrote SpreadsheetLight.

And this question is possibly a duplicate of this: OpenXML libraries (alternatives to ClosedXML)




回答3:


I use Simple OOXML and it's quite neat. And free.



来源:https://stackoverflow.com/questions/14529366/does-a-good-wrapper-class-and-or-library-for-open-xml-excel-editing-exist

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