Office add-in for Word desktop only

梦想的初衷 提交于 2019-12-02 07:59:17

I will quote documentation statement at Set the Hosts element ...

"Note: The Name attribute specifies the Office host application that can run your add-in. Office hosts are supported on different platforms and run on desktops, web browsers, tablets, and mobile devices. You can't specify which platform can be used to run your add-in. For example, if you specify Mailbox, both Outlook and Outlook Web App can be used to run your add-in."

Basically it says you cannot make add-in available only for Desktop version via manifest. You still have the option to check the host at run time as described over there: Use runtime checks in your JavaScript code. You may also look at Additions to Office.context.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!