Ms word Can';t将TaskpaneButton的默认图标更改为自定义图像
我在尝试将Office Word 2016功能区上的standart图标更改为custom for TaskpaneButton时遇到了一个问题 我已经将特定图像(大小:16X16、32X32、80X80)添加到我的项目解决方案中 并更改了清单中图像的路径Ms word Can';t将TaskpaneButton的默认图标更改为自定义图像,ms-word,ms-office,manifest,office-js,office-addins,Ms Word,Ms Office,Manifest,Office Js,Office Addins,我在尝试将Office Word 2016功能区上的standart图标更改为custom for TaskpaneButton时遇到了一个问题 我已经将特定图像(大小:16X16、32X32、80X80)添加到我的项目解决方案中 并更改了清单中图像的路径 <!-- Control. It can be of type "Button" or "Menu". --> <Control xsi:type="Button" id="Contoso.Tas
<!-- Control. It can be of type "Button" or "Menu". -->
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
<Label resid="Contoso.TaskpaneButton.Label"/>
<Supertip>
<!-- ToolTip title. resid must point to a ShortString resource. -->
<Title resid="Contoso.TaskpaneButton.Label"/>
<!-- ToolTip description. resid must point to a LongString resource. -->
<Description resid="Contoso.TaskpaneButton.Tooltip"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="Contoso.tpicon_16x16"/>
<bt:Image size="32" resid="Contoso.tpicon_32x32"/>
<bt:Image size="80" resid="Contoso.tpicon_80x80"/>
</Icon>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Contoso.tpicon_16x16"
DefaultValue="http://localhost:1234/wa/Images/R16X16.png"/>
<bt:Image id="Contoso.tpicon_32x32"
DefaultValue="http://localhost:1234/wa/Images/R32X32.png"/>
<bt:Image id="Contoso.tpicon_80x80"
DefaultValue="http://localhost:1234/wa/Images/R80X80.png"/>
</bt:Images>
但我看到默认的(蓝色六边形)图像添加到功能区后
顺便说一句,我已经在office online和mac版本中检查过了,它工作正常,我可以看到我的图标而不是默认图标
我还使用“Office Upload Center”工具清理了Office的缓存,但结果是一样的
有人能解释这个问题的主要原因吗?您需要使用httpS来托管图标。有些平台比较松散,没有强制执行这一要求,这就是为什么你现在可以在网上看到它工作的原因 如何部署外接程序?Visual Studio?通过文件共享侧向加载?您是否在“加载项”对话框中按了“刷新”按钮?您好,我使用了文件共享。我已将清单放入共享文件夹,并从Word addin的“插入”选项卡插入此清单