首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当您通过集中式部署发布外接程序时,是否可以默认使其可见,而不必通过Insert > My Add-ins手动添加它?

当您通过集中式部署发布外接程序时,是否可以默认使其可见,而不必通过Insert > My Add-ins手动添加它?
EN

Stack Overflow用户
提问于 2017-06-22 06:04:33
回答 1查看 39关注 0票数 0

这是在清单中控制taskpaneButton等的部分。我很确定你可以调整它来实现它,但需要一些建议。

代码语言:javascript
复制
        <!-- Form factor. Currently only DesktopFormFactor is supported. -->
    <DesktopFormFactor>
      <!--"This code enables a customizable message to be displayed when the add-in is loaded successfully upon individual install."-->
      <GetStarted>
        <!-- Title of the Getting Started callout. resid points to a ShortString resource -->
        <Title resid="Contoso.GetStarted.Title"/>

        <!-- Description of the Getting Started callout. resid points to a LongString resource -->
        <Description resid="Contoso.GetStarted.Description"/>

        <!-- Point to a url resource which details how the add-in should be used. -->
        <LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
      </GetStarted>
      <!-- PrimaryCommandSurface is the main Office Ribbon. -->
      <ExtensionPoint xsi:type="PrimaryCommandSurface">
        <!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. -->
        <OfficeTab id="TabHome">
          <!-- Ensure you provide a unique id for the group. Recommendation for any IDs is to namespace using your company name. -->
          <Group id="Contoso.Group1">
            <!-- Label for your group. resid must point to a ShortString resource. -->
            <Label resid="Contoso.Group1Label" />
            <!-- Icons. Required sizes 16,32,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX. -->
            <!-- Use PNG icons. All URLs on the resources section must use HTTPS. -->
            <Icon>
              <bt:Image size="16" resid="Contoso.tpicon_16x16" />
              <bt:Image size="32" resid="Contoso.tpicon_32x32" />
              <bt:Image size="80" resid="Contoso.tpicon_80x80" />
            </Icon>

            <!-- Control. It can be of type "Button" or "Menu". -->
            <Control xsi:type="Button" id="Contoso.TaskpaneButton">
              <Label resid="Contoso.TaskpaneButton.Label" />
              <Supertip>
                <!-- ToolTip title. resid must point to a ShortString resource. -->
                <Title resid="Contoso.TaskpaneButton.Label" />
                <!-- ToolTip description. resid must point to a LongString resource. -->
                <Description resid="Contoso.TaskpaneButton.Tooltip" />
              </Supertip>
              <Icon>
                <bt:Image size="16" resid="Contoso.tpicon_16x16" />
                <bt:Image size="32" resid="Contoso.tpicon_32x32" />
                <bt:Image size="80" resid="Contoso.tpicon_80x80" />
              </Icon>

              <!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. -->
              <Action xsi:type="ShowTaskpane">
                <TaskpaneId>ButtonId1</TaskpaneId>
                <!-- Provide a url resource id for the location that will be displayed on the task pane. -->
                <SourceLocation resid="Contoso.Taskpane.Url" />
              </Action>
            </Control>
          </Group>
        </OfficeTab>
      </ExtensionPoint>
    </DesktopFormFactor>

这是office 365中的一个单词插件,如果不需要为每个人执行插入过程就好了。我不确定,但我想我已经看到了类似的问题,但我还是问了它。

EN

回答 1

Stack Overflow用户

发布于 2017-07-06 05:17:19

Automatically open a task pane with a document上描述的新功能会满足您的需求吗?下面是一个示例:Office OOXML EmbedAddin

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44687001

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档