Office.context.document.getFileAsync throwing errors
问题 I am getting a very strange issue whereby when I try to extract the word document as a compressed file for processing in my MS Word Task Pane MVC app the third time, it will blow up. Here is the code: Office.context.document.getFileAsync(Office.FileType.Compressed, function (result) { if (result.status == "succeeded") { var file = result.value; file.getSliceAsync(0, function (resultSlice) { //DO SOMETHING }); } else { //TODO: Service fault handling? } }); The error code that comes up is 5001.