Office add-in with both taskpane and content?

随声附和 提交于 2019-12-01 01:14:46

It is not possible to launch a taskpane from a content add-in and commands are only supported for the taskpane manifest. An alternative for your scenario is to have a content add-in and then, to declutter some of the UI in your content add-in, use the dialog API (E.g. have a gear icon than then opens the dialog for more real state where you present more options).

Longer term I'm thinking we should have an API to allow you to insert web objects on the document. So the model would be to just have a single "add-in" concept, that has commands, and then from commands you use APIs to do stuff, including inserting web objects into the document, displaying dialogs, or panes.

At this time you can only show a taskpane or a dialog through an add-in command. It is a scenario that we've heard and we have in our roadmap to address (not committed date yet). We can reply to this thread when the functionality is available for preview.

Is there a particular scenario you want where you'd need this to be a content add-in (i.e. a data visualization?).

thanks

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