Last active
August 28, 2017 19:35
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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