Reputation: 11
I am using 'Office Web Add In' to add some functionality into the office applications like excel,word etc.I want to trigger this functionality on opening/closing of excel.
Problem is the Office Web Add In runs only on user-interaction, when the user clicks on the menu in the ribbons option.
I am not able to trigger this add-in functionality automatically. This is achievable in other type of add-ins such as Excel- VBA or VSTO Add In.
How can I trigger the add-in functionality automatically on opening excel ?
Have searched for a solution online, but could not find so. Found something called as 'Auto Open Task Pane' feature which still does not works properly.
Upvotes: 0
Views: 919
Reputation: 4397
I am assuming you are addin is built through office yeoman generator or may be on your own with proper manifest file.
Please see the official docs
Please note: Auto open will only work on the below applications.
Also in your manifest file you can add
<Action xsi:type="ShowTaskpane">
<TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId>
<SourceLocation resid="Contoso.Taskpane.Url" />
</Action>
More clear documentation is available on the official link.
Hope it helps.
Upvotes: 0