Search code examples
c#powerpointribbonoffice-interopoffice-2010

How to activate Developer tab in Powerpoint 2010 programmatically?


Could anyone help me how can I activate the 'developer' tab on my Powerpoint2010 application? I have created a new Powerpoint presentation

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

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

Now I just want to enable the Developer tab which by default is not disabled.. How can I do this?


Solution

  • That's a setting for the PowerPoint application (for 2010) not a single presentation. As part of the ribbon I do not see a simple way to enable the developer tab. Probably, it could be done by customizing the ribbon.

    However, the easiest way seems to be setting the registry key HKCU\Software\Microsoft\Office\14.0\PowerPoint\Options\DeveloperTools = 1 before starting PPT.