Before making the add-in available we have to add the following in the manifest to prevent the add-in for being loaded in Excel Web:
<Set Name="OpenBrowserWindowApi" MinVersion="1.1"/>
<Requirements>
<Sets DefaultMinVersion="1.1">
<Set Name="SharedRuntime" MinVersion="1.1"/>
<Set Name="OpenBrowserWindowApi" MinVersion="1.1"/>
</Sets>
</Requirements>
- Make add-in available for the whole organization
- Install add-in locally on Excel Desktop
- Open Excel Desktop & save an Excel document in the cloud with add-in loaded.
- Open document in Excel Web
- Add-in gets loaded( I see the ribbon and everything) but it is not working ( errors with add-in not available )
Not OK: When I open the document in Excel Web I expect that my add-in will not be available at all because as it says in the manifest OpenBrowserWindowApi should be available for the client. Excel Web does not support OpenBrowserWindowApi and it should not even load the add-in as the manifest states it as a requirement.
Not sure how to prevent the add-in from being loaded when we are in Excel Web.
Do you know some other alternatives for preventing the add-in to be loaded in Excel Web ?