You can get the Office version and some related information through Office.context.diagnostics. See https://learn.microsoft.com/javascript/api/office/office.context?view=common-js-preview#office-office-context-diagnostics-member
How to call office js function hosted in taskpane from c# addin. For example, On contentcontrol enter event, highlight any html control on taskpane
Ganesh Panchal
6
Reputation points
How to call office js function hosted in taskpane from c# addin. For example, On contentcontrol enter event, highlight any html control on taskpane