将服务添加到Word 2013中的“共享”选项卡

时间:2013-12-12 16:29:43

标签: ms-word add-in office-2013

有没有办法在“邀请人”,“电子邮件”,“在线提交”和“发布为博客帖子”旁边添加新服务?我知道你可以为“保存”和“打开”标签添加另一个来源,但是“分享”呢?

enter image description here

1 个答案:

答案 0 :(得分:1)

您可以通过“后台”自定义来实现这一点 - 即您可以将项目嵌入任何内置选项卡中。您可以在文档/模板级别上执行此操作(以便此新选项仅适用于特定文档/针对特定模板创建的文档),或者通过构建Word的加载项(在“应用程序”级别上添加)这个选项。

查看这些文章:

Introduction to the Office 2010 Backstage View for Developers

Customizing Office 2013 backstage

请注意,可视功能区设计器(在visual studio中)确实支持扩展的内置选项卡,您需要通过在XML中定义“添加”来扩展办公室功能区“后台”。对于“共享”选项卡,您可能需要一些像这样的xml(注意“idMso”)。

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> 
<backstage>
  <tab idMso="TabShare">
    <firstColumn>
      <taskFormGroup idMso="GroupShare">
        <category idMso="Share">
          <task id="SayHelloTask" insertBeforeMso="ShareWithPeople" label="Say Hello Task">
            <group id="HelloGroup" label="Say Hello" helperText="This group contains say hello button.">
              <primaryItem>
                <button id="SayHelloButton" label="Say Hello" onAction="ThisDocument.SayHello" />
              </primaryItem>
            </group>
          </task>
        </category>
      </taskFormGroup>
    </firstColumn>
  </tab>
</backstage>
</customUI> 

Download sample document (Doc1.docm)

enter image description here

可以从Microsoft

下载内置“idMso”名称的完整列表
相关问题