Skip to content

Instantly share code, notes, and snippets.

@nbelyh
Last active August 28, 2017 19:35
Show Gist options
  • Save nbelyh/dc0552168886eac20a6c520b580820ef to your computer and use it in GitHub Desktop.
Save nbelyh/dc0552168886eac20a6c520b580820ef to your computer and use it in GitHub Desktop.
VisioOnline: Application object example. https://dev.office.com/reference/add-ins/visio/application.
Visio.run(function (ctx) {
var application = ctx.document.application;
application.showToolbars = false;
return ctx.sync();
}).catch(function(error) {
console.log("Error: " + error);
if (error instanceof OfficeExtension.Error) {
console.log("Debug info: " + JSON.stringify(error.debugInfo));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment