0

它在 Office 2013 任务窗格应用程序中易于使用的绑定与Office.context.document.bindings.addFromSelectionAsync.

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

那么Binding Type我应该使用哪个? matrix并且table似乎不是正确的,并且text不工作! 好像不合适!

谢谢!

4

1 回答 1

0

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

于 2014-05-21T05:03:47.760 回答