Excel Add-In - context menu items - no icons, double labels

Dariusz Socha 1 Reputation point
2023-01-04T16:18:19.607+00:00

Hello, I work on an Excel add-in, I've added two options to the context menu and they work fine but they are displayed in a strange way (no icons, two labels for each). What do I need to change in my manifest file to show menu items with single labels with icons?

  <Items>  
                    <!-- <Context Menu - Search> -->  
                    <Item id="SearchItem">  
                      <Label resid="label.search" />                                 
                      <Supertip>  
                        <Title resid="label.search" />  
                        <Description resid="desc.search" />  
                      </Supertip>  
                      <Icon>  
                        <bt:Image size="16" resid="icon-search.16x16"/>  
                        <bt:Image size="32" resid="icon-search.32x32"/>  
                        <bt:Image size="80" resid="icon-search.80x80"/>  
                      </Icon>  
                      <Action xsi:type="ExecuteFunction">  
                        <FunctionName>action</FunctionName>                  
                      </Action>  
                    </Item>  
                    <!-- </Context Menu - Search> -->  
  
                    <!-- <Context Menu - Open Pane> -->  
                    <Item id="OpenPaneItem">  
                      <Label resid="label.openPane" />                  
                      <Supertip>  
                        <Title resid="label.openPane" />  
                        <Description resid="desc.openPane" />  
                      </Supertip>  
                      <Icon>  
                        <bt:Image size="16" resid="icon-ki.16x16"/>  
                        <bt:Image size="32" resid="icon-ki.32x32"/>  
                        <bt:Image size="80" resid="icon-ki.80x80"/>  
                      </Icon>  
                      <Action xsi:type="ShowTaskpane">                          
                        <SourceLocation resid="Taskpane.Url"/>  
                      </Action>  
                    </Item>  
                    <!-- </Context Menu - Open Pane> -->  
                  </Items>                     

276193-screenshot-2023-01-04-at-164555.png

Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.