【问题标题】:How to delete Ooxml added to a content control in word document using contentControl.insertOoxml() from office.js如何使用 office.js 中的 contentControl.insertOoxml() 删除添加到 Word 文档中的内容控件的 Ooxml
【发布时间】:2020-01-31 15:45:59
【问题描述】:

所以我想使用 Office.js 在 word 文档中添加 cmets。我已经使用 contentControl.insertOoxml() 将 xml 添加到文档中。现在我想删除这个添加的评论(Ooxml)。是否有任何 Office.js api 来实现这一点?

【问题讨论】:

  • Comment 在 Word 文档中是一个非常具体的东西;目前尚不清楚您如何使用该术语。如果您提供minimal reproducible example 会有所帮助,以便人们可以更准确地了解您在做什么。它还将为创建答案提供一个起点。您可以使用问题下方的edit 链接添加更多信息。 “有可能”的简短回答可能是肯定的......

标签: ms-word office-js add-in office-addins office-js-helpers


【解决方案1】:

目前没有直接添加/删除 cmets 的 word js API。由于您已使用 contentControl.insertOoxml() 在内容控件中添加了注释,因此您可以使用 InsertOoxml API 执行类似的操作,将内容控件的内容替换为不带注释的新内容。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-12-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多