Outlook 2016: надстройка отображается только в Outlook Web Access, но не в Outlook для настольных ПК.

Наша компания хочет разработать надстройку для Outlook 2016 и использовать новую веб-технологию. В качестве первого шага мы создали Manifest-XML и поместили ресурсы на сервер. Затем мы сделали следующее:

  • Мы импортировали манифест в Центр администрирования Exchange для всей организации с жесткого диска.
  • Надстройка была активирована для учетной записи.

Результат: в варианте Outlook для веб-OWA кнопки появились вместе с панелью задач. Однако в Outlook для рабочего стола кнопки отсутствовали на ленте, а также на панели задач, хотя надстройка появилась в настройках.

Для тестирования мы получили веб-надстройку «Wunderlist» из Магазина, и это сработало.

Вот Манифест (все еще в разработке):

<?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>7164e750-dc86-49c0-b548-1bac57abdc7c</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Microsoft Outlook Dev Center</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Add-in Command Demo" />
  <Description DefaultValue="Adds command buttons to the ribbon in Outlook"/>
  <IconUrl DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon128.png" />
  <HighResolutionIconUrl DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon128.png" />

  <SupportUrl DefaultValue="https://www.google.de" />

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="MailBox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <!-- These elements support older clients that don't support add-in commands -->
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <!-- NOTE: Just reusing the read taskpane page that is invoked by the button
             on the ribbon in clients that support add-in commands. You can 
             use a completely different page if desired -->
        <SourceLocation DefaultValue="https://www.google.de"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </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>
          <FunctionFile resid="functionFile" />

          <!-- Message read form -->
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadDemoGroup">
                <Label resid="groupLabel" />

                <!-- Task pane button -->
                <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>
        <!-- Blue icon -->
        <bt:Image id="blue-icon-16" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-16.png" />
        <bt:Image id="blue-icon-32" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-32.png" />
        <bt:Image id="blue-icon-80" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-80.png" />
        <!-- Red icon -->
        <bt:Image id="red-icon-16" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-16.png" />
        <bt:Image id="red-icon-32" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-32.png" />
        <bt:Image id="red-icon-80" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-80.png" />
        <!-- Green icon -->
        <bt:Image id="green-icon-16" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-16.png" />
        <bt:Image id="green-icon-32" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-32.png" />
        <bt:Image id="green-icon-80" DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile" DefaultValue="https://www.google.de" />
        <bt:Url id="readTaskPaneUrl" DefaultValue="https://mail.stanoc.com/conats/Dev/Source/ARC/ARCS_40_DEDE_SRC.NSF/CWEB_CONTENT_XC_DIAE.xsp?Addin" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Add-in Demo" />
        <bt:String id="funcReadButtonLabel" DefaultValue="Get subject" />
        <bt:String id="menuReadButtonLabel" DefaultValue="Get property" />
        <bt:String id="paneReadButtonLabel" DefaultValue="Display all properties" />

        <bt:String id="funcReadSuperTipTitle" DefaultValue="Gets the subject of the message or appointment" />
        <bt:String id="menuReadSuperTipTitle" DefaultValue="Choose a property to get" />
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Get all properties" />

        <bt:String id="menuItem1ReadLabel" DefaultValue="Get item class" />
        <bt:String id="menuItem2ReadLabel" DefaultValue="Get date time created" />
        <bt:String id="menuItem3ReadLabel" DefaultValue="Get item ID" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="funcReadSuperTipDescription" DefaultValue="Gets the subject of the message or appointment and displays it in the info bar. This is an example of a function button." />
        <bt:String id="menuReadSuperTipDescription" DefaultValue="Gets the selected property of the message or appointment and displays it in the info bar. This is an example of a drop-down menu button." />
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties of the message or appointment. This is an example of a button that opens a task pane." />

        <bt:String id="menuItem1ReadTip" DefaultValue="Gets the item class of the message or appointment and displays it in the info bar." />
        <bt:String id="menuItem2ReadTip" DefaultValue="Gets the date and time the message or appointment was created and displays it in the info bar." />
        <bt:String id="menuItem3ReadTip" DefaultValue="Gets the item ID of the message or appointment and displays it in the info bar." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

Было бы неплохо получить подсказку, почему веб-надстройка не работает в Outlook 2016 для Windows-Desktop. заранее спасибо

Обновление: я использую следующую версию Outlook

Microsoft Outlook 2016 MSO (16.0.4266.1001) 64-разрядная версия


person PeterMIME    schedule 21.11.2017    source источник
comment
Какую версию Outlook (включая сборку) вы используете?   -  person Marc LaFleur    schedule 22.11.2017


Ответы (1)


В вашем манифесте следующие строки определяют изображения надстроек ...

<IconUrl DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon128.png" />
<HighResolutionIconUrl DefaultValue="https://mail.stanoc.com/conats/Dev/Samples/XPages/xScrapbook.nsf/assets/icon128.png" />

Я предполагаю (глядя на имя изображения) фактический размер изображения составляет 128x128, и это изображение установлено как для _ 2_ и HighResolutionIconUrl. Это неверно и может вызвать проблемы на рабочем столе Outlook. Изображения для HighResolutionIconUrl подойдут с разрешением 128x128, но не могут использоваться для IconUrl. Прочтите документацию и укажите требуемые размеры изображений. Ниже приводится цитата из документации ...

  • IconUrl - Изображение должно быть в одном из следующих форматов файлов: GIF, JPG, PNG, EXIF, BMP или TIFF. Для приложений области содержимого и задач указанное изображение должно иметь размер 32 x 32 пикселя.
  • HighResolutionIconUrl - Изображение должно быть в одном из следующих форматов файла с рекомендуемым разрешением 64 x 64 пикселя: GIF, JPG, PNG, EXIF, BMP или TIFF.
person Slava Ivanov    schedule 22.11.2017