Skip to content

About

AddinCommands 1.3

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

AddinCommands

I have created 3 simple manifest files and tried to include a built-in command using the 'OfficeControl' tag.

The command is displayed in PowerPoint, but not in Excel or Word.

learn.microsoft.com/en-us/office/dev/add-ins/design/built-in-button-integration

The documentation says that this is only supported in PowerPoint at the moment.

learn.microsoft.com/en-us/javascript/api/manifest/group

<Group id="ExecuteButtonGroupId">
   <Label resid="ExecuteButton_Label"/>
   <Icon>
      <bt:Image size="16" resid="BET_16x16"/>
      <bt:Image size="32" resid="BET_32x32"/>
      <bt:Image size="80" resid="BET_80x80"/>
   </Icon>
   <Control xsi:type="Button" id="ExecuteButtonId">
      <Label resid="ExecuteButton_Label"/>
      <Supertip>
         <Title resid="ExecuteButton_Label"/>
         <Description resid="LS_Supertip"/>
      </Supertip>
      <Icon>
         <bt:Image size="16" resid="BET_16x16"/>
         <bt:Image size="32" resid="BET_32x32"/>
         <bt:Image size="80" resid="BET_80x80"/>
      </Icon>
      <Action xsi:type="ExecuteFunction">
         <FunctionName>ButtonPressedEvent</FunctionName>
      </Action>
   </Control>

   <OfficeControl id="Paste" />
</Group>

PowerPoint Desktop Application

When the manifest is side loaded into PowerPoint, the Paste command is displayed.

Excel Desktop Application

When the manifest is side loaded into Excel, the Paste command is NOT displayed.

Word Desktop Application

When the manifest is side loaded into Word, the Paste command is NOT displayed.

Nice To Have - size="large"

Be able to display a built-in controls with a large size
<OfficeControl id="Paste" size="large" />

Nice To Have - on a menu

Be able to include built-in controls on a menu
<Control xsi:type="Menu">
  <Label/>
  <Icon/>
  <Items>
    <Item id="BUILTIN_ID">
      <OfficeControl id="Paste" />
    </Item>
  </Items>

Desktop Office Version

About

AddinCommands 1.3

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors