2017-01-15 8 views
1

Ich entwickle ein Office-Add-in für Outlook. Im Moment versuche ich nur, dem Band eine Schaltfläche hinzuzufügen, die den TaskPane rechts öffnen sollte, aber ich kann es nicht zum Laufen bringen. Hier ist mein Manifest:Outlook-Add-In-Menüband Schaltfläche nicht angezeigt

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

erwarte ich einen Knopf auf dem Band mit meinem Logo zu sehen, die ich sollte in der Lage zu klicken und dann die TaskPane nach rechts zu sehen. Ich sehe jedoch, dass keine Schaltfläche angezeigt wird und unter Office-Add-Ins -> Meine Add-Ins wird mein Addin nicht angezeigt.

Wenn ich den gesamten VersionOverrides-Block im Manifest lösche, erscheint das Add-In unter "Office Add-Ins -> Meine Add-Ins" und ich kann dort auf meinen TaskPane zugreifen.

Ich habe versucht, diese Beispiele ohne Erfolg zu folgen:

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

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

Jede Eingabe auf diese am meisten geschätzt werden würde!

/Max

Antwort

1

Ihr Ressourcenabschnitt ist nicht richtig formatiert. Bitte aktualisieren Sie die folgenden und alles funktioniert, wie Sie ... angefordert

<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_16.png" /> 
    <bt:Image id="icon80" DefaultValue="https://hiddenurl/assets/icons/icon_16.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="buttonLabel" DefaultValue="buttonLabel" /> 
    <bt:String id="superTipTitle" DefaultValue="superTipTitle" /> 
    </bt:ShortStrings> 
    <bt:LongStrings> 
    <bt:String id="buttonTooltip" DefaultValue="buttonTooltip" /> 
    <bt:String id="groupsTooltip" DefaultValue="groupsTooltip" /> 
    <bt:String id="superTipDescription" DefaultValue="superTipDescription" /> 
    </bt:LongStrings> 
</Resources> 

Sie sollten „IconUrl“ und „HighResolutionIconUrl“ in „OfficeApp“ Abschnitt hinzufügen Kunden zu unterstützen, die wissen nichts über „VersionOverridesV1_0“. diese beiden Knoten sollten nach "Description" kommen. Wenn Sie Ihre App in Zukunft im Office Store einreichen möchten, müssen Sie nach "HighResolutionIconUrl" den Knoten "SupportUrl" hinzufügen.

Denken Sie daran, alles in Manifest-Datei ist streng nach Schemata und sollte gültig sein.

Verwandte Themen