Office js 将Outlook Web加载项功能添加到上下文菜单

Office js 将Outlook Web加载项功能添加到上下文菜单,office-js,outlook-web-addins,Office Js,Outlook Web Addins,是否可以将Outlook Web加载项功能添加到关联菜单?由于旧的VSTO加载项可能: 我只找到一些带有选项卡功能区的示例,如: <!--PrimaryCommandSurface==Main Office Ribbon--> <ExtensionPoint xsi:type="PrimaryCommandSurface"> <CustomTab id="Contoso.Tab1"> <Gro

是否可以将Outlook Web加载项功能添加到关联菜单?由于旧的VSTO加载项可能:

我只找到一些带有选项卡功能区的示例,如:

      <!--PrimaryCommandSurface==Main Office Ribbon-->
      <ExtensionPoint xsi:type="PrimaryCommandSurface">
        <CustomTab id="Contoso.Tab1">
          <Group id="Contoso.Tab1.Group1">
            <Label resid="Contoso.Tab1.GroupLabel" />
            <Icon>
              <bt:Image size="16" resid="Contoso.TaskpaneButton.Icon" />
              <bt:Image size="32" resid="Contoso.TaskpaneButton.Icon" />
              <bt:Image size="80" resid="Contoso.TaskpaneButton.Icon" />
            </Icon>
            <!--Control. It can be of type "Button" or "Menu" -->
            <Control xsi:type="Button" id="Contoso.FunctionButton">
              <Label resid="Contoso.FunctionButton.Label" />

Outlook Web加载项仅允许通过添加命令自定义功能区。在文章中阅读更多关于这方面的内容

Outlook Web加载项仅允许通过添加命令自定义功能区。在文章中阅读更多关于这方面的内容

据我所知,这是可能的。您可以找到一个不同Office应用程序的示例,但我认为Outlook也应该如此。在Excel中,会添加一个上下文菜单,并将以下代码添加到清单中。请注意,下面的代码不包括对URL、长字符串和短字符串的引用(resid)

<!-- ContextMenu extends selected context menus (E.g. right click menu)--> 
      <ExtensionPoint xsi:type="ContextMenu">
        <!--The id of the menu specifies the existing context menu being extended-->
        <!--ContextMenuCell (Excel) and ContextMenuText (Word) are currently supported-->
      <OfficeMenu id="ContextMenuCell">
        <Control xsi:type="Menu" id="Contoso.TestMenu2">
          <Label resid="residLabel3" />
          <Supertip>
            <Title resid="residLabel" />
            <Description resid="residToolTip" />
          </Supertip>
          <Icon>
            <bt:Image size="16" resid="icon1_32x32" />
            <bt:Image size="32" resid="icon1_32x32" />
            <bt:Image size="80" resid="icon1_32x32" />
          </Icon>
          <Items>
            <Item id="showGallery2">
              <Label resid="residLabel3"/>
              <Supertip>
                <Title resid="residLabel" />
                <Description resid="residToolTip" />
              </Supertip>
              <Icon>
                <bt:Image size="16" resid="icon1_32x32" />
                <bt:Image size="32" resid="icon1_32x32" />
                <bt:Image size="80" resid="icon1_32x32" />
              </Icon>
              <Action xsi:type="ShowTaskpane">
                <!--TaskPaneId is required. It is currently not used by the framework but it will be in a future iteration -->
                <TaskpaneId>MyTaskPaneID1</TaskpaneId>
                <!--The URL to show inside the taskpane -->
                <SourceLocation resid="residUnitConverterUrl" />
              </Action>
            </Item>
          <Item id="showGallery3">
              <Label resid="residLabel5"/>
              <Supertip>
                <Title resid="residLabel" />
                <Description resid="residToolTip" />
              </Supertip>
              <Icon>
                <bt:Image size="16" resid="icon1_32x32" />
                <bt:Image size="32" resid="icon1_32x32" />
                <bt:Image size="80" resid="icon1_32x32" />
              </Icon>
              <Action xsi:type="ShowTaskpane">
                <TaskpaneId>MyTaskPaneID2</TaskpaneId>
                <SourceLocation resid="residUnitConverterUrl" />
              </Action>
            </Item>
          </Items>
        </Control>
      </OfficeMenu>
     </ExtensionPoint>

MyTaskPaneID1
MyTaskPaneID2
据我所知,这是可能的。您可以找到一个不同Office应用程序的示例,但我认为Outlook也应该如此。在Excel中,会添加一个上下文菜单,并将以下代码添加到清单中。请注意,下面的代码不包括对URL、长字符串和短字符串的引用(resid)

<!-- ContextMenu extends selected context menus (E.g. right click menu)--> 
      <ExtensionPoint xsi:type="ContextMenu">
        <!--The id of the menu specifies the existing context menu being extended-->
        <!--ContextMenuCell (Excel) and ContextMenuText (Word) are currently supported-->
      <OfficeMenu id="ContextMenuCell">
        <Control xsi:type="Menu" id="Contoso.TestMenu2">
          <Label resid="residLabel3" />
          <Supertip>
            <Title resid="residLabel" />
            <Description resid="residToolTip" />
          </Supertip>
          <Icon>
            <bt:Image size="16" resid="icon1_32x32" />
            <bt:Image size="32" resid="icon1_32x32" />
            <bt:Image size="80" resid="icon1_32x32" />
          </Icon>
          <Items>
            <Item id="showGallery2">
              <Label resid="residLabel3"/>
              <Supertip>
                <Title resid="residLabel" />
                <Description resid="residToolTip" />
              </Supertip>
              <Icon>
                <bt:Image size="16" resid="icon1_32x32" />
                <bt:Image size="32" resid="icon1_32x32" />
                <bt:Image size="80" resid="icon1_32x32" />
              </Icon>
              <Action xsi:type="ShowTaskpane">
                <!--TaskPaneId is required. It is currently not used by the framework but it will be in a future iteration -->
                <TaskpaneId>MyTaskPaneID1</TaskpaneId>
                <!--The URL to show inside the taskpane -->
                <SourceLocation resid="residUnitConverterUrl" />
              </Action>
            </Item>
          <Item id="showGallery3">
              <Label resid="residLabel5"/>
              <Supertip>
                <Title resid="residLabel" />
                <Description resid="residToolTip" />
              </Supertip>
              <Icon>
                <bt:Image size="16" resid="icon1_32x32" />
                <bt:Image size="32" resid="icon1_32x32" />
                <bt:Image size="80" resid="icon1_32x32" />
              </Icon>
              <Action xsi:type="ShowTaskpane">
                <TaskpaneId>MyTaskPaneID2</TaskpaneId>
                <SourceLocation resid="residUnitConverterUrl" />
              </Action>
            </Item>
          </Items>
        </Control>
      </OfficeMenu>
     </ExtensionPoint>

MyTaskPaneID1
MyTaskPaneID2

不,这是不可能的。我在Outlook插件开发部门工作,我也有这个要求。但是,不允许扩展Outlook web加载项中的上下文菜单。Microsoft尚未提供上下文菜单作为web加载项的扩展点。所以这是不可能的。但是,这在本机windows加载项中是可能的。不,这是不可能的。我在Outlook加载项开发中工作,我也有这个要求。但是,不允许扩展Outlook web加载项中的上下文菜单。Microsoft尚未提供上下文菜单作为web加载项的扩展点。所以这是不可能的。但是,在本机windows加载项中是可能的。谢谢,这应该只适用于注释中所述的Word和Excel。那么,为什么您接受其他答案,而不是此答案?谢谢,这应该只适用于注释中所述的Word和Excel。那么,为什么您接受其他答案,而不是此答案?