【问题标题】:OutLook Add-in command & not showing in OutlookOutlook 加载项命令 & 未显示在 Outlook 中
【发布时间】:2016-06-03 02:31:08
【问题描述】:

我收到了微软的回复 验证测试结果:

“您的加载项必须使用加载项命令,因为它会在所有消息或所有约会上触发。引入加载项命令是因为它们可以带来更好、更容易发现、本机和引人入胜的体验插件命令如何实现,请看这篇文章:https://msdn.microsoft.com/ENUS/library/office/mt267547.aspx

 您的加载项无法在 Windows 10 上使用 Internet Explorer 11 的 Outlook 2016 客户端或 Windows 7 上的 Outlook 2013 客户端和 Internet Explorer 11 中运行。阅读任何电子邮件时,我们无法触发您的加载项。注意:当在 Outlook Web App 中查看电子邮件时,我们可以插入您的加载项。”

我不明白我做错了什么。为什么我的加载项没有显示在 Outlook 中?

我的清单(所有 url 工作):

    <?xml version="1.0" encoding="UTF-8"?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<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>9230b645-1919-43a0-a568-1f2300fe06b0</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Information Technologies Ltd.</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Clobbi CRM" />
  <Description DefaultValue="Clobbi CRM"/>
  <IconUrl DefaultValue="MY_URL" />
  <HighResolutionIconUrl DefaultValue="MY_URL" />
  <SupportUrl DefaultValue="https://support.it.ua"></SupportUrl>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="MailBox" />
    </Sets>
  </Requirements>
  <FormSettings >
    <Form xsi:type="ItemRead">
      <DesktopSettings>        
        <SourceLocation DefaultValue="MY_URL"/>
        <RequestedHeight>450</RequestedHeight>        
      </DesktopSettings>
    </Form>    
  </FormSettings>
  <Permissions>ReadItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read" />

  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">

    <Description resid="residDescription" />

    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>        

         <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadDemoGroup">
                <Label resid="groupLabel" />
                 <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="green-icon-16" />
                    <bt:Image size="32" resid="green-icon-32" />
                    <bt:Image size="80" resid="green-icon-80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="readTaskPaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="green-icon-16" DefaultValue="MY_URL"/>
        <bt:Image id="green-icon-32" DefaultValue="MY_URL"/>
        <bt:Image id="green-icon-80" DefaultValue="MY_URL"/>     
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="MY_URL"/>
        <bt:Url id="readTaskPaneUrl" DefaultValue="MY URL"/>            
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Clobbi CRM"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Clobbi CRM"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Нажмите чтобы открыть Clobbi CRM."/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Нажмите чтобы открыть Clobbi CRM."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

【问题讨论】:

    标签: outlook ms-office outlook-addin


    【解决方案1】:

    &lt;Description resid="residDescription" /&gt; 指的是未包含在您的&lt;Resources&gt; 中的残基。

    它根本没有出现的原因与此有关。当您定义VersionOverrides时,Windows 版 Outlook 将忽略默认设置(即您“覆盖”的设置)。当它在VersionOverrides 中遇到错误时,它无法呈现加载项命令。不幸的是,Outlook 不会“回退”到默认处理,它只会无法加载加载项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-05
      相关资源
      最近更新 更多