Word在线和Word XML

时间:2016-02-03 01:37:30

标签: xml ms-word openxml office-js

是否可以从Word上的任务窗格应用程序在线访问基础XML?我可以在桌面Word中使用getNamesoaceAsyncgetXmlAsync等函数,但在线Word总是抛出错误代码6000 - 找不到这样的节点。

1 个答案:

答案 0 :(得分:1)

That's correct. CustomXmlPart.getXmlAsync() and CustomXmlPrefixMappings.getNamespaceAsync() are not available in Office Online (in browser).

However, other calls are available such as Document.getSelectedDataAsync(), which can be called with a coercionType of Office.CoercionType.Ooxml to retrieve OOXML.