【问题标题】:How to activate Developer tab in Powerpoint 2010 programmatically?如何以编程方式激活 Powerpoint 2010 中的开发人员选项卡?
【发布时间】:2011-12-09 07:13:24
【问题描述】:

谁能帮助我如何激活我的 Powerpoint2010 应用程序上的“开发者”选项卡?我创建了一个新的 Powerpoint 演示文稿

PowerPoint.Application oPPT = new PowerPoint.Application();
oPPT.Visible = Office.MsoTriState.msoTrue;

PowerPoint.Presentations oPresSet = oPPT.Presentations;
PowerPoint.Presentation oPres = oPresSet.Add(Office.MsoTriState.msoTrue);

现在我只想启用默认情况下未禁用的开发人员选项卡。我该怎么做?

【问题讨论】:

    标签: c# powerpoint ribbon office-interop office-2010


    【解决方案1】:

    补充一点,Paul 说得对,您可以(实际上必须)通过在 2010 年自定义功能区来添加开发人员选项卡。

    文件 |选项 |自定义功能区,并在右侧列表框中的“开发者”旁边打勾。

    【讨论】:

      【解决方案2】:

      这是 PowerPoint 应用程序(2010 版)的设置,而不是单个演示文稿。作为功​​能区的一部分,我看不到启用开发人员选项卡的简单方法。或许,可以通过自定义功能区来完成。

      不过,最简单的方法似乎是在启动 PPT 之前设置注册表项 HKCU\Software\Microsoft\Office\14.0\PowerPoint\Options\DeveloperTools = 1

      【讨论】:

      • 感谢 Paul B。虽然不是我想要的,但这会有所帮助。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-12-09
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多