Office-js-Excel功能区按钮显示在桌面上,而不显示在Web上的Excel中

问题描述

因此,我试图为添加项创建一些快捷方式,这些快捷方式可通过功能区上的添加命令按钮进行访问。这些按钮显示在桌面excel上,而不显示在Web上的excel中。这对我来说是个问题,因为似乎唯一可靠的调试加载项的方法是通过Web上的Office和浏览器调试器。

我的清单通过了验证,并且在浏览器控制台中没有得到任何反馈,因此我不知道问题出在哪里。我清单的相关部分在这里:

        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <FunctionFile resid="PlaidCloudAddin.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="CommandsGroup">
                <Label resid="CommandsGroup.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>
                <Control xsi:type="Button" id="TaskpaneButton">
                  <Label resid="TaskpaneButton.Label"/>
                  <Supertip>
                    <Title resid="TaskpaneButton.Label"/>
                    <Description resid="TaskpaneButton.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>ButtonId1</TaskpaneId>
                    <SourceLocation resid="PlaidCloudAddin.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
            <OfficeTab id="TabData">
              <Group id="PlaidCommandsGroup">
                <Label resid="PlaidButtons.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>
                <Control xsi:type="Button" id="PullAllButton">
                  <Label resid="PullAllButton.Label"/>
                  <Supertip>
                    <Title resid="PullAllButton.Label"/>
                    <Description resid="PullAllButton.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>syncAll</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="PullOneButton">
                  <Label resid="PullOneButton.Label"/>
                  <Supertip>
                    <Title resid="PullOneButton.Label"/>
                    <Description resid="PullOneButton.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>syncOne</FunctionName>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>

请注意,作为模板的一部分创建的默认“显示任务窗格”按钮会显示并起作用,而不是我添加的两个按钮。

对于上下文,这是我的数据功能区现在的样子:

Excel Data tab

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...