Openxml sdk来操作当前活动的文档 [英] Openxml sdk to manipulate currently active document

查看:145
本文介绍了Openxml sdk来操作当前活动的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

是否可以使用Open XML sdk来操作当前在ofice应用程序中打开的文档部分(word / ppt)。

我需要创建一个功能区命令,它可以为当前文档添加一些部分。

我知道最简单的方法是使用VSTO,但它的速度很慢,并且会使用剪贴板来插入元素,OXML sdk更直接,更简单。

如果有人可以发布一些很棒的代码示例。

提前致谢
Rakesh

Hello,

Is it possible to use the Open XML sdk to manipulate parts of document which is currently open in the ofice app (word/ppt).

I need to create a ribbon command which adds some parts to the current document.

I know the easiest thing is to use VSTO, but its slow and would involve clipboard use to insert elements, the OXML sdk is direct and simpler.

If somebody could post some code sample that would be great.

Thanks in advance
Rakesh

推荐答案

看一下本视频中显示的最后一个演示:http://blogs.msdn.com /brian_jones/archive/2009/11/23/open-xml-sdk-word-automation-services-presentation-at-pdc.aspx

您可以操纵XML如果SharePoint 2010上存在这些文档,则在客户端应用程序中打开文档时,Word或PowerPoint文档。

Take a look at the last demo shown in this video: http://blogs.msdn.com/brian_jones/archive/2009/11/23/open-xml-sdk-word-automation-services-presentation-at-pdc.aspx

You are able to manipulate the XML of a Word or PowerPoint document while the document is opened in the client application if those documents exist on SharePoint 2010.


这篇关于Openxml sdk来操作当前活动的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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