2017-02-08 68 views
1

我面臨的問題,而試圖在2016年不能TaskpaneButton的默認圖標更改爲自定義圖像

我已經添加了特定圖像Office Word中的絲帶非標準圖標更改爲定製TaskpaneButton(大小:16X16,32X32,80X80)到我的項目解決方案 ,並更改清單中圖像的路徑。

<!-- 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> 

但是我看到添加插件到功能區之後的默認(藍色六邊形)圖像。

順便說一句。我已經在辦公室在線和Mac版本檢查了它的工作正常,我可以看到我的圖標,而不是默認圖標。

另外我使用「Office Upload Center」工具清理了Office的緩存,但結果相同。

任何人都可以解釋這個問題的主要原因嗎?

+0

你如何部署你的加載項?視覺工作室?通過文件共享加載?您是否在加載項對話框中按刷新? –

+0

嗨,我用過fileshare。我已將清單放入共享文件夾中,並將其插入Word插件中的「插入」選項卡中 – user3771409

回答

2

您需要使用httpS來承載圖標。有些平臺更加鬆懈,不會強制實施這個要求,這就是爲什麼您現在可以在Online上看到它的原因。

相關問題