Cyril
Cyril

Reputation: 11

Open a Powerpoint file in Presenter mode

I can open a Powperpoint file in directly in slideshow mode with this :

System.Diagnostics.Process pptProcess = new System.Diagnostics.Process();
pptProcess.StartInfo.FileName = Environment.CurrentDirectory + @"\MyPres.pptx";
pptProcess.StartInfo.UseShellExecute = true;
pptProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized;
pptProcess.StartInfo.Verb = "show"; // to open the slideshow
pptProcess.Start();

Now Powerpoint allows us to see our notes and slideshow in same time, it's the presenter mode. So, I want to open a presentation directly in this mode. I've tried differents "verbs" (StartInfo.Verb), differents arguments (StartInfo.Arguments) but I didn't have a solution.

Do you have a solution for me ?

Thanks for your help.

Upvotes: 1

Views: 1420

Answers (1)

Steve Rindsberg
Steve Rindsberg

Reputation: 14809

PowerPoint stores a flag in the registry to indicate whether it should show presentations in presenter view or not. For example, for PowerPoint 2010, it's in:

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\PowerPoint\Options

The value is a DWORD named UseMonMgr

You could set it to 1 before starting PowerPoint. Changing the registry after PowerPoint has started will have no effect.

Or once PPT is open, you can set the presentation object's SlideShowSettings.ShowPresenterView to true.

Upvotes: 1

Related Questions