Office add-in with both taskpane and content?

后端 未结 2 458
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 15:59

I spent all night looking this up and can\'t find it.

Is it possible to have an Excel/Office add-in that has both content and taskpane components?

Really, I

2条回答
  •  伪装坚强ぢ
    2021-01-03 16:06

    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.

提交回复
热议问题