0

我正在尝试开发一个 office-js word 插件来增强右键菜单,但是当我在 manifest 中添加元素时。Word 无法再读取/访问清单。所以 OfficeMenu 对我不可用。

我可以检查什么?

非常感谢

<ExtensionPoint xsi:type="ContextMenu">
            <OfficeMenu id="ContextMenuText">
              <Control xsi:type="Menu" id="ContextMenu2">
                <Label resid="CommandGroup.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>
                  <Items>
                    <Item id="Item1">
                      <Label resid="IdItem1"/>
                      <Supertip>
                        <Title resid="IdItem1"/>
                        <Description resid="TaskpaneButton.Label"/>
                      </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="Taskpane.Url"/>
                    </Action>
                  </Item>
                </Items>
              </Control>
            </OfficeMenu>
          </ExtensionPoint> ```
4

1 回答 1

1

好的,我认为我发现了错误。

我运行了运行时调试模块,我发现问题只是由于拼写错误

以下行 <Label resid="CommandGroup.Label"/> 是指标签 Command s Group.Label 所以我在标签名中缺少 S ,这就是模块无法正确加载的原因

于 2020-04-23T09:40:10.173 回答