【问题标题】:Outlook Web Add-in : Ribbon button grayed out in Explorer view in EmailOutlook Web 加载项:功能区按钮在电子邮件的资源管理器视图中灰显
【发布时间】:2017-04-24 06:45:57
【问题描述】:

我正在使用 Outlook Web 插件中的功能区按钮来打开任务窗格。它在 web 上的 Outlook 中运行良好。但在 Outlook Outlook 桌面(2016)中,功能区按钮在电子邮件的资源管理器视图中显示为灰色(禁用)。See here。但是当打开一个电子邮件按钮是启用的。我正在使用 Outlook 64 位。

这是我正在使用的清单文件。

    <?xml version="1.0" encoding="UTF-8"?>
<!--Created:ce44715c-8c4e-446b-879c-ea9ebe0f09c8-->
<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">

  <!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. -->

  <!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. -->
  <Id>aeeb9a41-c591-4718-88e0-9ab3f4ec3eb9</Id>

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.0.0.0</Version>
  <ProviderName>Davton</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. -->
  <DisplayName DefaultValue="Notify To Team" />
  <Description DefaultValue="Notify To Team"/>
  <IconUrl DefaultValue="https://localhost:44300/Images/dvt-80.png"/>
  <HighResolutionIconUrl DefaultValue="https://localhost:44300/images/dvt-80.png" />

  <SupportUrl DefaultValue="http://www.contoso.com" />
  <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. -->
  <AppDomains>
    <AppDomain>AppDomain1</AppDomain>
    <AppDomain>AppDomain2</AppDomain>
    <AppDomain>AppDomain3</AppDomain>
  </AppDomains>
  <!--End Basic Settings. -->
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:44300/MessageRead.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="functionFile"/>
          <!--  Message Read  -->
          <!-- Message Read -->
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="messageReadTaskPaneUrl" />
                  </Action>
                </Control>
                <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://localhost:44300/Images/dvt-16.png"/>
        <bt:Image id="icon32" DefaultValue="https://localhost:44300/Images/dvt-32.png"/>
        <bt:Image id="icon80" DefaultValue="https://localhost:44300/Images/dvt-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="https://localhost:44300/Functions/FunctionFile.html"/>
        <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost:44300/MessageRead.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Connector"/>
        <bt:String id="customTabLabel"  DefaultValue="Notify to Team"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Notify to Team"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Notify to Team"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane and select a dropdown channel to notify and notify"/>
      </bt:LongStrings>
    </Resources>
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.3">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="functionFile"/>
            <!-- Message Read -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
              <OfficeTab id="TabDefault">
                <!-- Up to 6 Groups added per Tab -->
                <Group id="msgReadGroup">
                  <Label resid="groupLabel" />
                  <!-- Launch the add-in : task pane button -->
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="paneReadButtonLabel" />
                    <Supertip>
                      <Title resid="paneReadSuperTipTitle" />
                      <Description resid="paneReadSuperTipDescription" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="icon16" />
                      <bt:Image size="32" resid="icon32" />
                      <bt:Image size="80" resid="icon80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="messageReadTaskPaneUrl" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                  <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="icon16" DefaultValue="https://localhost:44300/Images/dvt-16.png"/>
          <bt:Image id="icon32" DefaultValue="https://localhost:44300/Images/dvt-32.png"/>
          <bt:Image id="icon80" DefaultValue="https://localhost:44300Images/dvt-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="functionFile" DefaultValue="https://localhost:44300/Functions/FunctionFile.html"/>
          <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost:44300/MessageRead.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="groupLabel" DefaultValue="Connector"/>
          <bt:String id="customTabLabel"  DefaultValue="Connector"/>
          <bt:String id="paneReadButtonLabel" DefaultValue="Notify to Team"/>
          <bt:String id="paneReadSuperTipTitle" DefaultValue="Notify to Team"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane and select a dropdown channel to notify and notify"/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>

谁能帮我在 Outlook 的资源管理器视图中启用功能区按钮。

【问题讨论】:

  • Sandun,您使用的是哪个版本的桌面 Outlook 2016?当您切换到“查看”标签时,您可以分享功能区的屏幕截图吗?
  • @OlegO 我正在使用 Outlook 版本 1703(内部版本 7967.2139)。 imgur.com/a/djY8A这是视图标签的屏幕截图
  • 不,我的意思是您能否切换到“查看”选项卡并截取该选项卡中所有功能区按钮的屏幕截图 - 抱歉,我的要求不是很清楚...

标签: outlook-addin office-js office-addins outlook-web-addins


【解决方案1】:

您的清单文件有问题。更改以下内容:

<bt:Image id="icon80" DefaultValue="https://localhost:44300Images/dvt-80.png"/>

到:

<bt:Image id="icon80" DefaultValue="https://localhost:44300/Images/dvt-80.png"/>

【讨论】:

  • 此外,它不会导致 OWA 出现问题的原因是它不使用 80x80 图像并且您的其他 URI 已正确定义。
  • @MarcLaFleur-MSFT 谢谢马克,我假设图像是 80x80,因为它称为“dvt-80.png”,但这也绝对需要验证。
  • @SlavaIvanov 感谢您的回答。我修复了更改,但问题是(禁用功能区按钮)仍在 Outlook 2016 中
  • @SandunTharaka 我确实没有你的照片。相反,我使用自己的图像来提供清单。在清单本身中,我更改了图像名称并修复了我作为答案发布的行。清单工作正常,图像出现在 Outlook 2016 中。现在您可以检查: 1. 尝试更改清单中的图像名称和您的资源(图像文件夹)以避免缓存选项。 2.检查您的图像大小,它们没有损坏。 3. 检查您是否在“localhost:44300”下运行您的应用程序,并且您可以仅使用浏览器导航到图像。告诉我。
  • @SandunTharaka 与 Outlook 位数无关。如果您尝试将更正后的清单加载到另一个 Outlook 64 位,只需不同的计算机/帐户即可。您可以通过从 Outlook 中删除您的交换帐户(现在已禁用图标)并将另一个帐户添加到同一 Outlook 来验证它,加载清单,您将看到启用的图标。
猜你喜欢
  • 1970-01-01
  • 2022-10-01
  • 1970-01-01
  • 1970-01-01
  • 2017-12-11
  • 2018-08-05
  • 2018-05-07
  • 2021-11-14
  • 1970-01-01
相关资源
最近更新 更多