`context.document.body.insertOoxml` breaks documents, crashes word
问题 I know this is not a question, but I was sent here by Rick Kirkham from here, and apparently asking on SO is the way to file bugs for Microsoft products :-p When I use insertOoxml with the 'replace' parameter, Word will insert extra content at the end. For example, when using the following code in Script Lab, with a new, empty word document: $("#run").click(run); function run() { Word.run(function (context) { var ooxml = context.document.body.getOoxml(); return context.sync().then(function ()