How do I show a custom taskpane automatically when the add-in loads (i.e. without having to click a command that is tied to that URL)?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Jan 2018 update:
Office has shipped a new feature which lets you configure your add-in to automatically open a task pane when the file loads if the add-in had been used there previously: https://docs.microsoft.com/en-us/office/dev/add-ins/design/automatically-open-a-task-pane-with-a-document.
Original Answer:
Commands cannot currently be used to launch a task pane when the document opens.
However, you can cause the task pane to open automatically if you remove all commands from the manifest entirely.