是否存在OpenXML SDK v2中未公开的功能? [英] Is there functionality that is NOT exposed in the OpenXML SDK v2?

查看:59
本文介绍了是否存在OpenXML SDK v2中未公开的功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在COM界面中公开的SDK是否有您无法做的事情?

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

推荐答案

OpenXML SDK是OpenXML文件格式的便捷层.使用此SDK,您可以进行与文件格式有关的所有操作,例如插入,修改和删除内容,元数据和格式.

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.

与Office的COM自动化相比,您不能执行与应用程序逻辑相关的任何操作.举个例子:使用OpenXML SDK,您不知道文本文档中某个元素的页码,因为这需要分页,您无法重新计算电子表格的公式,因为这需要Excel的数学引擎,否则您无法将演示文稿幻灯片转换为图像,因为这需要PowerPoint来呈现幻灯片.

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.

关于Word,您可以看以下演示文稿,该演示文稿演示何时使用OpenXML SDK与Office自动化:

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

在PDC上打开XML SDK + Word自动化服务演示文稿

这篇关于是否存在OpenXML SDK v2中未公开的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆