Outlook加载项撰写功能区图标无法呈现 [英] Outlook Add-in Compose Ribbon Icon not rendering

查看:68
本文介绍了Outlook加载项撰写功能区图标无法呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为OWA构建一个加载项,当用户在撰写邮件时单击加载项图标时,该加载项会在右侧打开任务窗格。但是,图标不会呈现。我认为我的manifest.xml中存在一个问题,但无论我改变什么,它都不会出现
。检查控制台不会显示任何错误,并且可以从Web访问每个不同大小的图标。


I'm trying to build an add-in for OWA that opens a taskpane on the right when the user clicks the add-in icon while composing a message. However, the icon doesn't render. I think there is a problem in my manifest.xml but no matter what I change it doesn't seem to show up. Inspecting the console doesn't show any errors and each of the differently sized icons are accessible from the web.

这是我目前正在使用的清单:

Here is the manifest I'm currently using:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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>f383cd4d-edf3-43fc-9e99-25305b40cf50</Id>
  <Version>1.0.1.0</Version>
  <ProviderName>xxx</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Google Hangouts(TEST)"/>
  <Description DefaultValue="~"/>
  <HighResolutionIconUrl DefaultValue="~dir/hangout/images/hi-res-icon.png"/>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="MailBox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="~dir/hangout/appread/home.html"/>
        <RequestedHeight>350</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="~dir/hangout/appcompose/home.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
  
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit"/>
    
    <Rule xsi:type="RuleCollection" Mode="And">
    
      <Rule xsi:type="RuleCollection" Mode="Or">
        <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
        <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read"/>
      </Rule>
      
      <Rule xsi:type="RuleCollection" Mode="Or">
        <Rule xsi:type="ItemHasKnownEntity" EntityType="MeetingSuggestion" />
        <Rule xsi:type="ItemHasKnownEntity" EntityType="PhoneNumber" />
      </Rule>
      
    </Rule>
  </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>
      
        <!-- Message Compose -->
        <ExtensionPoint xsi:type="MessageComposeCommandSurface">
        	<OfficeTab id="TabDefault">
        		<Group id="msgComposeGroup">
        			<Label resid="groupLabel" />
        			<Control xsi:type="Button" id="msgComposeOpenPaneButton">
        				<Label resid="paneComposeButtonLabel" />
        				<Supertip>
        					<Title resid="paneComposeSuperTipTitle" />
        					<Description resid="paneComposeSuperTipDescription" />
        				</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="messageComposeTaskPaneUrl" />
        				</Action>
        			</Control>
        		</Group>
        	</OfficeTab>
        </ExtensionPoint>
        </DesktopFormFactor>
      </Host>

    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="~dir/hangout/images/icon-16.png" />
        <bt:Image id="icon32" DefaultValue="~dir/hangout/images/icon-32.png" />
        <bt:Image id="icon80" DefaultValue="~dir/hangout/images/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="messageComposeTaskPaneUrl" DefaultValue="~dir/hangout/appcompose/home.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Google" />
        <bt:String id="paneLabel" DefaultValue="Google Hangouts" />
        <bt:String id="paneComposeButtonLabel" DefaultValue="Google Hangouts" />
        <bt:String id="paneComposeSuperTipTitle" DefaultValue="Google Hangouts Office Add-in" /> 
             
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneComposeSuperTipDescription" DefaultValue=Application that lets users easily create unique Google Hangouts room." />                            
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

我将不胜感激任何有关此问题的想法/建议。

I would appreciate any thoughts / suggestions on this issue.

此处问题的截图:

imgur.com/a/hDfev

imgur.com/a/hDfev

(我可以'由于未经验证的帐户或一些废话直接发布)

(I can't post directly because of unverified account or some nonsense)

谢谢

推荐答案

您好, 

Hello, 

我试图从您的清单安装并收到以下错误...

I have tried to install from your manifest and got the following error ...

基本上你错过了报价LongStrings在"DefaultValue"之后阻止。

Basically you missed quote in the LongStrings block after "DefaultValue".

希望这可以解决问题,


这篇关于Outlook加载项撰写功能区图标无法呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆