How to programatically open a document using javascript office api ?
Is there a way to insert a document using javascript office api Or to get access to the document xml ? Something like this
Excel.run(function (ctx) {
var application = ctx.workbook.application;
application.load('newXmlWorkbook', worbookInXmlFormat);
return ctx.sync().then(function() {
console.log(application.calculationMode);
});
}).catch(function(error) {
console.log("Error: " + error);
if (error instanceof OfficeExtension.Error) {
console.log("Debug info: " + JSON.stringify(error.debugInfo));
}
});