Open a Powerpoint file in Presenter mode

浪子不回头ぞ 提交于 2020-01-25 06:11:32

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/24800521/open-a-powerpoint-file-in-presenter-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!