【发布时间】:2020-02-12 01:46:41
【问题描述】:
我使用 Yeoman 生成器创建了一个单词插件来创建我的插件。我的加载项运行良好,但我想在工具栏上显示我的加载项图标。如果我在网络上使用 office,则图标显示没有任何问题。如果我在桌面上使用 Word (2016)(version:16.0.4939),我无法在任何功能区工具栏(主页、插入、设计、布局、参考等....)中显示图标.
这是清单的一部分。
<!-- Control. It can be of type "Button" or "Menu". -->
<Control xsi:type="Button" id="TaskpaneButton">
<Label resid="TaskpaneButton.Label" />
<Supertip>
<!-- ToolTip title. resid must point to a ShortString resource. -->
<Title resid="TaskpaneButton.Label" />
<!-- ToolTip description. resid must point to a LongString resource. -->
<Description resid="TaskpaneButton.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.16x16" />
<bt:Image size="32" resid="Icon.32x32" />
<bt:Image size="80" resid="Icon.80x80" />
</Icon>
<!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. -->
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<!-- Provide a url resource id for the location that will be displayed on the task pane. -->
<SourceLocation resid="Taskpane.Url" />
</Action>
</Control>
我错过了什么?桌面上的 Word 是否不显示图标?如何在桌面上显示加载项图标以方便用户访问?
【问题讨论】:
标签: office-js