【问题标题】:Correlation between BindingType and CoercionType in the JavaScript API for Office (Word)JavaScript API for Office (Word) 中的 BindingType 和 CoercionType 之间的相关性
【发布时间】:2014-04-25 13:26:38
【问题描述】:

在 Office 2013 任务窗格应用程序中使用Office.context.document.bindings.addFromSelectionAsync 进行简单易用的绑定。

The Documentaton 告诉我可以将 HTML 插入绑定。 (仅限文字) 当我尝试这样做时,就像在文档中一样,我只收到错误The specified coercion type is not compatible with this binding type.

那么我应该使用哪个Binding Typematrixtable 似乎不是正确的,text 不起作用! The seems to be no corrent one!

谢谢!

【问题讨论】:

    标签: javascript ms-office office-2013 apps-for-office


    【解决方案1】:

    GitHub 上的 WikiPedia Store 应用程序中有一个很棒的 Word 示例,您可以下拉并查看 https://github.com/OfficeDev/Office-Apps 它是如何将 HTML 注入 Word 正文的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-13
      • 1970-01-01
      • 1970-01-01
      • 2013-01-09
      相关资源
      最近更新 更多