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
2022-04-26T16:56:13.96+00:00

How to call office js function hosted in taskpane from c# addin. For example, On contentcontrol enter event, highlight any html control on taskpane

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
{count} vote

1 answer

Sort by: Most helpful
  1. David Chesnut 241 Reputation points Microsoft Employee
    2022-10-31T23:20:00.667+00:00

    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

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.