I have developed an Excel Add-in, which uses shared runtime. Now when I save a workbook after opening Add-in, it inserts add-in information in it and if I send it to someone who does not have Add-in, it shows error message that You don't have add-in rights or similar. I have to manually remove Add-in using Info=>Inspect for Issues option.
Is there any way that I can removed or prevent Add-in information from workbook? As per documentation there are scenarios like one described here in MS documentation.
I have tried to achieve it using one of the following, but it is not working. Do I missing something here?
Office.addin.setStartupBehavior(Office.StartupBehavior.none);
2
Office.context.document.settings.set("Office.AutoShowTaskpaneWithDocument", false);
Office.context.document.settings.saveAsync();
3
Office.context.document.settings.remove('Office.AutoShowTaskpaneWithDocument');
Office.context.document.settings.saveAsync();
None of the above 3 worked in my case.