【问题标题】:How to make add-in manifest.xml for excel?如何为 excel 制作插件 manifest.xml?
【发布时间】:2021-07-13 14:00:35
【问题描述】:

我是 excel 编程新手。 我需要制作类似this 的东西(导航栏上的新标签和一些按钮)。

主要问题是如何创建一个新标签(如图片上的 FWO-Office-Addins)。谢谢帮忙!

【问题讨论】:

  • 请将您尝试过的方法添加到您的问题中

标签: excel outlook-addin add-in office-addins excel-addins


【解决方案1】:

您对带有自定义功能区选项卡的插件命令感兴趣。例如,以下示例展示了如何使用具有 PrimaryCommandSurface 属性值的 ExtensionPoint 元素,以及应与每个元素一起使用的子元素:

<ExtensionPoint xsi:type="PrimaryCommandSurface">
  <CustomTab id="Contoso Tab">
  <!-- If you want to use a default tab that comes with Office, remove the above CustomTab element, and then uncomment the following OfficeTab element -->
  <!-- <OfficeTab id="TabData"> -->
    <Label resid="residLabel4" />
    <Group id="Group1Id12">
      <Label resid="residLabel4" />
      <Icon>
        <bt:Image size="16" resid="icon1_32x32" />
        <bt:Image size="32" resid="icon1_32x32" />
        <bt:Image size="80" resid="icon1_32x32" />
      </Icon>
      <Tooltip resid="residToolTip" />
      <Control xsi:type="Button" id="Button1Id1">

        <!-- information about the control -->
      </Control>
      <!-- other controls, as needed -->
    </Group>
  </CustomTab>
</ExtensionPoint>

Add-in commands for Excel, PowerPoint, and Word 文章中了解更多信息。

【讨论】:

  • 你好,谢谢回答,我正在尝试这个,但它不起作用,然后添加了一个: 在 manifest.xml 的末尾,现在它可以工作了!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-11-02
  • 1970-01-01
  • 2020-02-12
  • 2013-01-05
  • 2019-04-23
  • 2010-10-30
相关资源
最近更新 更多