Is there functionality that is NOT exposed in the OpenXML SDK v2?

旧巷老猫 提交于 2019-12-01 02:19:32

问题


I want to know if there is anything that you cannot do with SDK that was exposed in the COM interface?


回答1:


The OpenXML SDK is a convenience layer for the OpenXML file format. Using this SDK you can do everything that is possible to do with the file format, e.g. insert, modify and remove content, metadata and formatting.

In contrast to COM automation of Office you can't do anything that is related to application logic. To give you some examples: Using the OpenXML SDK, you can't know the page number of a certain element in a text document because that would require pagination, you can't recalculate the formulas of a spreadsheet because that requires Excel's math engine, or you can't convert a presentation slide into an image because that requires PowerPoint to render the slide.

Regarding Word, you can have a look at the following presentation which demonstrates when to use the OpenXML SDK vs. Office automation:

Open XML SDK + Word Automation Services Presentation at PDC



来源:https://stackoverflow.com/questions/3319273/is-there-functionality-that-is-not-exposed-in-the-openxml-sdk-v2

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