Working with Office “open” XML - just how hard is it?

前端 未结 4 1343
陌清茗
陌清茗 2021-02-10 00:26

I\'m considering replacing a (very) large body of Office-automation code with something that works with the Office XML format directly. I\'m just starting out, but already I\'m

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-10 00:47

    Here is another third party library dedicated to working with OpenXML:

    http://www.officewriter.com

    In the example cited by amurra above of deleting Excel spreadsheet rows, this is a single method call with this tool. It updates formulas and all the other references for which it seems that 500 lines of code would be required for otherwise.

    The OpenXML SDK itself is a great tool for very simple things, but you still have to concern yourself with a lot of the internals of the file format and packaging structure to get things really right.

提交回复
热议问题