Outlook加载项窗口:未显示在功能区中的按钮

发布于 2025-02-06 18:49:12 字数 5795 浏览 3 评论 0原文

我正在为Outlook Windows开发一个加载项,并且很难设置清单,以便在约会接口中的功能区中显示该按钮。 截至目前,在功能区上显示的按钮是按钮“ Office Add-ins”,它打开了一个窗口,允许用户选择我正在开发的加载项。 这是显示的按钮的图片,而不是我的附加图标: office add-ins按钮显示

这是我的加载项(匿名)

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">
  <Id>04049d6c-3286-46c1-be8a-965a2a8ee58f</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>X</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Room Finder"/>
  <Description DefaultValue="Find a free room for your meeting."/>
  <IconUrl DefaultValue="https://someurl.com/assets/logo-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://someurl.com/assets/logo-128.png"/>
  <SupportUrl DefaultValue="https://someurl.com"/>
  <AppDomains>
    <AppDomain>https://someurl.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://someurl.com/webaddin/taskpane.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit"/>
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read" />
    <Rule xsi:type="ItemHasKnownEntity" EntityType="MeetingSuggestion" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>


  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Description resid="residAppDesc" />
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="appOrgGroup">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="appOrgTaskPaneButton">
                    <Label resid="appOrgTaskPaneButton.Label"/>
                    <Supertip>
                      <Title resid="appOrgTaskPaneButton.Label"/>
                      <Description resid="appOrgTaskPaneButton.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16"/>
                      <bt:Image size="32" resid="Icon.32x32"/>
                      <bt:Image size="80" resid="Icon.80x80"/>
                      <bt:Image size="128" resid="Icon.128x128"/>
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="appOrgTaskPaneButton.Url"/>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://someurl.com/webaddin/assets/logo-16.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://someurl.com/webaddin/assets/logo-32.png"/>
          <bt:Image id="Icon.64x64" DefaultValue="https://someurl.com/webaddin/assets/logo-64.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://someurl.com/webaddin/assets/logo-80.png"/>
          <bt:Image id="Icon.128x128" DefaultValue="https://someurl.com/webaddin/assets/logo-128.png"/>
        </bt:Images>
        <bt:Urls>
          <!-- Separate page for appointments-->
          <bt:Url id="appOrgTaskPaneButton.Url" DefaultValue="https://someurl.com/webaddin/taskpane.html"/>

        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="My company"/>
          <bt:String id="appOrgTaskPaneButton.Label" DefaultValue="Find Meeting Room"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="appOrgTaskPaneButton.Tooltip" DefaultValue="Find an available room for this meeting based on your building and floor selection"/>
          <bt:String id="residAppDesc" DefaultValue="My company"></bt:String>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>


</OfficeApp>

是我的清单xml有什么问题吗?我试图尽可能少地偏离Github Repos

Edit 上的Microsoft团队的示例:似乎在Outlook 2021

环境设置上没有发生此问题:Microsoft Outlook 2016 (16.0.5182.1000)Exchange 2016(构建版本15.1.2375.7)

I'm developping an add-in for outlook windows and i'm having trouble setting up the manifest so that the button shows up on the ribbon in the appointment interface.
As of right now, the button that shows up on the ribbon is the button "Office Add-ins" that opens up a window that allow users to select the Add-in i'm developping.
Here is a picture of the button that shows up instead of my add-in icon :
Office Add-ins button showing up

Here is the manifest of my add-in (anonymised)

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">
  <Id>04049d6c-3286-46c1-be8a-965a2a8ee58f</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>X</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Room Finder"/>
  <Description DefaultValue="Find a free room for your meeting."/>
  <IconUrl DefaultValue="https://someurl.com/assets/logo-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://someurl.com/assets/logo-128.png"/>
  <SupportUrl DefaultValue="https://someurl.com"/>
  <AppDomains>
    <AppDomain>https://someurl.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://someurl.com/webaddin/taskpane.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit"/>
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read" />
    <Rule xsi:type="ItemHasKnownEntity" EntityType="MeetingSuggestion" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>


  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Description resid="residAppDesc" />
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="appOrgGroup">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="appOrgTaskPaneButton">
                    <Label resid="appOrgTaskPaneButton.Label"/>
                    <Supertip>
                      <Title resid="appOrgTaskPaneButton.Label"/>
                      <Description resid="appOrgTaskPaneButton.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16x16"/>
                      <bt:Image size="32" resid="Icon.32x32"/>
                      <bt:Image size="80" resid="Icon.80x80"/>
                      <bt:Image size="128" resid="Icon.128x128"/>
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="appOrgTaskPaneButton.Url"/>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://someurl.com/webaddin/assets/logo-16.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://someurl.com/webaddin/assets/logo-32.png"/>
          <bt:Image id="Icon.64x64" DefaultValue="https://someurl.com/webaddin/assets/logo-64.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://someurl.com/webaddin/assets/logo-80.png"/>
          <bt:Image id="Icon.128x128" DefaultValue="https://someurl.com/webaddin/assets/logo-128.png"/>
        </bt:Images>
        <bt:Urls>
          <!-- Separate page for appointments-->
          <bt:Url id="appOrgTaskPaneButton.Url" DefaultValue="https://someurl.com/webaddin/taskpane.html"/>

        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="My company"/>
          <bt:String id="appOrgTaskPaneButton.Label" DefaultValue="Find Meeting Room"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="appOrgTaskPaneButton.Tooltip" DefaultValue="Find an available room for this meeting based on your building and floor selection"/>
          <bt:String id="residAppDesc" DefaultValue="My company"></bt:String>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>


</OfficeApp>

Is there anything wrong with my manifest.xml ? I tried to deviate as less as i could from examples from microsoft teams on Github repos

Edit : It seems that this issue does not happen on outlook 2021

Environment setup : Microsoft Outlook 2016 (16.0.5182.1000) Exchange 2016 (build version 15.1.2375.7) on-premise

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

<逆流佳人身旁 2025-02-13 18:49:12

在“清单文件”中,指定了一个内置选项卡:

 <OfficeTab id="TabDefault">

很可能在功能区上没有标签,带有此类ID进行约会。

对于自定义选项卡,您需要使用以下元素:

<CustomTab id="Contoso Tab">

officetab以下列方式用于内置功能区选项卡:

<OfficeTab id="TabData">

如果您使用fastertab元素,则无法使用officetab元素。

您可以检查如果需要查找内置的选项卡ID,请在MSDN中找到控件和控制组的ID

In the manifest file a built-in tab was specified:

 <OfficeTab id="TabDefault">

Most probably there is no tab on the ribbon with such ID for appointments.

For a custom tab you need to use the following element instead:

<CustomTab id="Contoso Tab">

The OfficeTab is used for built-in ribbon tabs in the following way:

<OfficeTab id="TabData">

If you use the CustomTab element, you can't use the OfficeTab element.

You may check the Find the IDs of controls and control groups section in MSDN if you need to find the built-in tab ID.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文