Outlook 2016中的功能区按钮 - 我的清单出了什么问题? [英] Ribbon button in Outlook 2016 - What is wrong with my manifest?

查看:66
本文介绍了Outlook 2016中的功能区按钮 - 我的清单出了什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我正在为Outlook开发Office插件。现在我只是想在功能区上添加一个按钮,该按钮应该向右打开TaskPane,但我无法让它工作。这是我的清单:


<?xml version =" 1.0"编码= QUOT; UTF-8英寸;?> 
< OfficeApp xmlns =" http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance"的xsi:type = QUOT; MailApp">

< Id> 1bf213f9-65a5-4395-aef8-239d72c7e509< / Id>
< Version> 1.0.0.0< / Version>
< ProviderName> myProviderName< / ProviderName>
< DefaultLocale> zh-CN< / DefaultLocale>
< DisplayName DefaultValue =" myDisplayName" />
<说明DefaultValue =" myDescription" />
< Hosts>
< Host Name =" Mailbox" />
< / Hosts>
<要求>
< Sets>
< Set Name =" MailBox" MINVERSION = QUOT; 1.1" />
< / Sets>
< /要求>
< FormSettings>
< Form xsi:type =" ItemEdit">
< DesktopSettings>
< SourceLocation DefaultValue =" https://hiddenurl/app/index.html" />
< / DesktopSettings>
< / Form>
< / FormSettings>

< Permissions> ReadWriteItem< / Permissions>

<规则xsi:type =" RuleCollection"模式= QUOT;或">
<规则xsi:type =" ItemIs" FormType = QUOT;编辑"的ItemType = QUOT;消息" />
< / Rule>
< DisableEntityHighlighting> false< / DisableEntityHighlighting>

< VersionOverrides xmlns =" http://schemas.microsoft.com/office/mailappversionoverrides"
xmlns:bt =" http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xsi:type =" VersionOverridesV1_0">
< Hosts>
< Host xsi:type =" MailHost">
< DesktopFormFactor>
< ExtensionPoint xsi:type =" MessageComposeCommandSurface">
< OfficeTab id =" TabDefault">
< Group id =" mainGroup">
< Label resid =" groupLabel" />
< Tooltip resid =" groupsTooltip" />

< Control xsi:type =" Button" ID = QUOT按钮">
< Label resid =" buttonLabel" />
< Tooltip resid =" buttonTooltip" />
< Supertip>
< Title resid =" superTipTitle" />
<说明resid =" superTipDescription" />
< / Supertip>
< Icon>
< bt:图片大小=" 16"渣油= QUOT; icon16" />
< bt:图像大小=" 32"渣油= QUOT; icon32" />
< bt:图像大小=" 80"渣油= QUOT; icon80" />
< / Icon>
< Action xsi:type =" ShowTaskpane">
< SourceLocation resid =" taskPaneUrl" />
< / Action>
< / Control>
< / Group>
< / OfficeTab>
< / ExtensionPoint>
< / DesktopFormFactor>
< / Host>
< / Hosts>
<资源>
< bt:图片>
< bt:图片ID =" icon16"默认值= QUOT; HTTPS://hiddenurl/assets/icons/icon_16.png" />
< bt:图片ID =" icon32"默认值= QUOT; HTTPS://hiddenurl/assets/icons/icon_32.png" />
< bt:图片ID =" icon80"默认值= QUOT; HTTPS://hiddenurl/assets/icons/icon_80.png" />
< / bt:图片>
< bt:Urls>
< bt:Url id =" taskPaneUrl"默认值= QUOT; HTTPS://hiddenurl/app/index.html" />
< / bt:网址>
< bt:ShortStrings>
< bt:String id =" tabLabel"默认值= QUOT; tabLabel" />
< bt:String id =" groupLabel"默认值= QUOT; GROUPLABEL" />
< bt:String id =" groupsTooltip"默认值= QUOT; groupsTooltip" />
< bt:String id =" buttonLabel"默认值= QUOT; BUTTONLABEL" />
< bt:String id =" buttonTooltip"默认值= QUOT; buttonTooltip" />
< bt:String id =" superTipTitle"默认值= QUOT; superTipTitle" />
< bt:String id =" superTipDescription"默认值= QUOT; superTipDescription" />
< / bt:ShortStrings>
< / Resources>
< / VersionOverrides>
< / OfficeApp>


我希望在功能区上看到一个带有我的徽标的按钮,我应该可以点击它,然后看到右侧的TaskPane。但是,我看到的是没有按钮显示在Office加载项下 - >我的加载项,我的Addin甚至没有显示。 


如果我删除清单中的整个VersionOverrides-block,则加载项会显示在"Office加载项"下 - >我的加载项"我可以通过那里访问我的TaskPane。


我试图按照这些例子取得成功:


https://github.com/ jasonjoh / command-demo / blob / master / command-demo-manifest.xml


http://simonjaeger.com/building-office-add-in-commands/



对此的任何输入都将非常感激!


/ Max

解决方案



我认为缺少FunctionFile。


    ;&NBSP;&NBSP;&NBSP;&NBSP;
< DesktopFormFactor>


<跨度>&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
< FunctionFile resid =" functionFile" />


    &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
< ExtensionPoint xsi:type =" MessageComposeCommandSurface">


请访问
在清单中定义加载项命令


我建议你使用VS来创建加载项。如果 您将收到编译错误
< FunctionFile resid =" functionFile" />缺少。


问候,


Celeste



Hi!

I'm developing an Office addin for Outlook. Right now I'm just trying to add a button to the ribbon that should open the TaskPane to the right, but I can't get it to work. Here is my manifest:

<?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" xsi:type="MailApp">
  
  <Id>1bf213f9-65a5-4395-aef8-239d72c7e509</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>myProviderName</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="myDisplayName" />
  <Description DefaultValue="myDescription"/>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="MailBox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://hiddenurl/app/index.html" />
      </DesktopSettings>
    </Form>
  </FormSettings>
  
  <Permissions>ReadWriteItem</Permissions>
  
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" FormType="Edit" ItemType="Message"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides"
                    xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
                    xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="mainGroup">
                <Label resid="groupLabel"/>
                <Tooltip resid="groupsTooltip"/>
                
                <Control xsi:type="Button" id="button">
                  <Label resid="buttonLabel"/>
                  <Tooltip resid="buttonTooltip"/>
                  <Supertip>
                    <Title resid="superTipTitle"/>
                    <Description resid="superTipDescription"/>
                  </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="taskPaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources> 
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://hiddenurl/assets/icons/icon_16.png" />
        <bt:Image id="icon32" DefaultValue="https://hiddenurl/assets/icons/icon_32.png" />
        <bt:Image id="icon80" DefaultValue="https://hiddenurl/assets/icons/icon_80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="taskPaneUrl" DefaultValue="https://hiddenurl/app/index.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="tabLabel" DefaultValue="tabLabel" />
        <bt:String id="groupLabel" DefaultValue="groupLabel" />
        <bt:String id="groupsTooltip" DefaultValue="groupsTooltip" />
        <bt:String id="buttonLabel" DefaultValue="buttonLabel" />
        <bt:String id="buttonTooltip" DefaultValue="buttonTooltip" />
        <bt:String id="superTipTitle" DefaultValue="superTipTitle" />
        <bt:String id="superTipDescription" DefaultValue="superTipDescription" />
      </bt:ShortStrings>
   </Resources>
  </VersionOverrides>
</OfficeApp>

I expect to see a button on the ribbon with my logo, which I should be able to click and then see the TaskPane to the right. However what I see is that no button is showing and under Office Add-ins -> My Add-ins, my Addin is not even showing. 

If I remove the entire VersionOverrides-block in the manifest the Add-in shows up under "Office Add-ins -> My Add-ins" and I can access my TaskPane through there.

I've tried to follow these examples without success:

https://github.com/jasonjoh/command-demo/blob/master/command-demo-manifest.xml

http://simonjaeger.com/building-office-add-in-commands/

Any input on this would be most appreciated!

/Max

解决方案

Hi,

I think FunctionFile is missing.

        <DesktopFormFactor>

          <FunctionFile resid="functionFile" />

          <ExtensionPoint xsi:type="MessageComposeCommandSurface">

Please visit Define add-in commands in your manifest

I suggest you use VS to create the add-in. You would get compile error if  <FunctionFile resid="functionFile" /> is missing.

Regards,

Celeste


这篇关于Outlook 2016中的功能区按钮 - 我的清单出了什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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