Информация о надстройках Office не отображается на панели задач для Windows 10, но работает на Mac - PullRequest
0 голосов
/ 24 сентября 2019

У меня есть надстройка MS Word Office.js с некоторыми областями задач.В правом верхнем углу панели задач есть раскрывающееся меню для получения информации о надстройке.

В Word 2016 на Mac он работает так, как ожидалось:

enter image description here

Но для Word 2016 в Windows 10 мой логотип отсутствует, и ссылка "Получить поддержку" не работает:

enter image description here:

Я подозреваю, что это связано с моим манифестом, поэтому я копирую соответствующие части ниже.Любая идея, как это исправить для Windows 10?

Вещи, которые я пробовал:

  • Очистка кеша в папке Wef
  • Включение журналов в реестре (ничего не регистрируется)
  • Использование Edge Dev Tools.Вот консоль:

enter image description here

«info» - это источник HTML (см. здесь ).Похоже, что это не фактическая ошибка.

=====

<?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" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
  <Id>...</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Patent Bots</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Patent Bots GCP"/>
  <Description DefaultValue="Patent Bots automated patent proofreading."/>
  <IconUrl DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_32.png"/>
  <SupportUrl DefaultValue="https://gcp.patentbots.com/word-add-in/redirect/help"/>
  <AppDomains>
    <AppDomain>https://gcp.patentbots.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Document"/>
  </Hosts>
  <Requirements>
     <Sets DefaultMinVersion="1.1">
        <Set Name="File" MinVersion="1.1"/>
        <Set Name="AddinCommands" MinVersion="1.1"/>
     </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://gcp.patentbots.com/word-add-in"/>
  </DefaultSettings>
  <Permissions>ReadAllDocument</Permissions>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <CustomTab id="PatentBotsTab">
              <Group id="PB.Group">
                <Label resid="PB.Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="PB.bot_16"/>
                  <bt:Image size="32" resid="PB.bot_32"/>
                  <bt:Image size="80" resid="PB.bot_80"/>
                </Icon>
                <Control xsi:type="Button" id="PB.Info">
                  <Label resid="PB.Info.Label"/>
                  <Supertip>
                    <Title resid="PB.Info.Title"/>
                    <Description resid="PB.Info.Desc"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="PB.bot_16"/>
                    <bt:Image size="32" resid="PB.bot_32"/>
                    <bt:Image size="80" resid="PB.bot_80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>PB.Info</TaskpaneId>
                    <SourceLocation resid="PB.Info.Url"/>
                  </Action>
                </Control>
              </Group>
              <Label resid="PB.Tab.Label"/>
            </CustomTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="PB.bot_16" DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_16.png"/>
        <bt:Image id="PB.bot_32" DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_32.png"/>
        <bt:Image id="PB.bot_80" DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="PB.Info.Url" DefaultValue="https://gcp.patentbots.com/word-add-in/info"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="PB.Group.Label" DefaultValue="Patent Bots Add In"/>
        <bt:String id="PB.Tab.Label" DefaultValue="Patent Bots GCP"/>

        <bt:String id="PB.Info.Label" DefaultValue="Patent Bots"/>
        <bt:String id="PB.Info.Title" DefaultValue="Information about Patent Bots"/>    
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="PB.Info.Desc" DefaultValue="Information about Patent Bots"/>        
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

Ответы [ 2 ]

0 голосов
/ 26 сентября 2019

Проблема исправлена ​​сама собой без каких-либо изменений в моем дополнении. Похоже, ошибка, которую исправила Microsoft, или, возможно, проблема с кэшированием, которая в конечном итоге разрешилась.

0 голосов
/ 25 сентября 2019

Я играл с вашим манифестом

Я нахожусь на Windows 10 Версия 1903.

Шаг 1: После загрузки надстройки.Нажмите Ctrl + F5 на клавиатуре, чтобы очистить кэш в IE.Чтобы избежать кеширования в будущем, добавьте выходное хэширование в вашу сборку.

Шаг 2: Можете ли вы попробовать следующий манифест.

<?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:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
  <Id>7748d238-f27e-5ge1-ab09-5967d67668bg</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Patent Bots</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Patent Bots GCP"/>
  <Description DefaultValue="Patent Bots automated patent proofreading."/>
  <IconUrl DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_32.png"/>
  <HighResolutionIconUrl DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_32.png"/>
  <SupportUrl DefaultValue="https://gcp.patentbots.com/word-add-in/redirect/help"/>
  <AppDomains>
    <AppDomain>https://gcp.patentbots.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Document"/>
  </Hosts>
  <Requirements>
     <Sets DefaultMinVersion="1.1">
        <Set Name="File" MinVersion="1.1"/>
        <Set Name="AddinCommands" MinVersion="1.1"/>
     </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://gcp.patentbots.com/word-add-in"/>
  </DefaultSettings>
  <Permissions>ReadAllDocument</Permissions>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <CustomTab id="PatentBotsTab">
              <Group id="PB.Group">
                <Label resid="PB.Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="PB.bot_16"/>
                  <bt:Image size="32" resid="PB.bot_32"/>
                  <bt:Image size="80" resid="PB.bot_80"/>
                </Icon>
                <Control xsi:type="Button" id="PB.Info">
                  <Label resid="PB.Info.Label"/>
                  <Supertip>
                    <Title resid="PB.Info.Title"/>
                    <Description resid="PB.Info.Desc"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="PB.bot_16"/>
                    <bt:Image size="32" resid="PB.bot_32"/>
                    <bt:Image size="80" resid="PB.bot_80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>PB.Info</TaskpaneId>
                    <SourceLocation resid="PB.Info.Url"/>
                  </Action>
                </Control>
              </Group>
              <Label resid="PB.Tab.Label"/>
            </CustomTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="PB.bot_16" DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_16.png"/>
        <bt:Image id="PB.bot_32" DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_32.png"/>
        <bt:Image id="PB.bot_80" DefaultValue="https://gcp.patentbots.com/static/word-add-in/bot_head_80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="PB.Info.Url" DefaultValue="https://gcp.patentbots.com/word-add-in/info"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="PB.Group.Label" DefaultValue="Patent Bots Add In"/>
        <bt:String id="PB.Tab.Label" DefaultValue="Patent Bots GCP"/>

        <bt:String id="PB.Info.Label" DefaultValue="Patent Bots"/>
        <bt:String id="PB.Info.Title" DefaultValue="Information about Patent Bots"/>    
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="PB.Info.Desc" DefaultValue="Information about Patent Bots"/>        
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

Примечание: Я добавил автономное свойство для первого элемента и включил элемент High ResolutionIconURL

И вывод, который я получаю на моем слове

enter image description here

Надеюсь, это поможет.

...