繁体   English   中英

OutLook加载项命令&在Outlook中不显示

[英]OutLook Add-in command & not showing in Outlook

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

“加载项必须使用加载项命令,因为它会触发所有消息或所有约会。引入了加载项命令,因为它们可以带来更好,更易发现,本机且引人入胜的体验,以了解如何实现加载项命令,请参阅本文: https : //msdn.microsoft.com/ENUS/library/office/mt267547.aspx

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

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

我的清单(所有网址均有效):

    <?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>

<Description resid="residDescription" />指的是<Resources>未包含的<Description resid="residDescription" />

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM