【问题标题】:Missing numbering.xml in getOoxml()getOoxml() 中缺少 numbering.xml
【发布时间】:2019-09-09 09:28:02
【问题描述】:

使用getOoxml()获取文档xml时,不包含numbering.xml包:

Word.run(function (context) {
     var body = context.document.body;
     var contentXML= body.getOoxml();

     return context.sync().then(function () {
           console.log("Body OOXML contents: " + contentXML.value);
     });
})

包含 word/styles.xml、word/fontTable.xml、theme1.xml 等,但没有 numbering.xml 我无法重新创建数字格式。!

【问题讨论】:

  • 我无法重现这个。您的代码返回的 OOXML 确实包含 <pkg:part pkg:name="/word/numbering.xml"。它位于<pkg:part pkg:name="/word/settings.xml" <pkg:part pkg:name="/word/styles.xml" 之间。

标签: javascript office-js word-addins


【解决方案1】:

这是office 2016的问题,升级到2019后问题已经解决了

【讨论】:

  • 感谢您发布问题的解决方案。下次记得在您的问题中指定软件/工具版本。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-08-02
  • 1970-01-01
  • 2012-10-23
  • 2011-12-11
  • 2011-05-29
  • 2012-06-12
  • 2016-09-30
相关资源
最近更新 更多