getOoxml() 中缺少 numbering.xml
Missing numbering.xml in getOoxml()
使用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 我不能'重新创建数字格式。!
这是office 2016的问题,升级到2019后问题已经解决
使用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 我不能'重新创建数字格式。!
这是office 2016的问题,升级到2019后问题已经解决