在排练录音模式下打开Powerpoint。 [英] Open Powerpoint in Rehearse recording mode.

查看:142
本文介绍了在排练录音模式下打开Powerpoint。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打开带有高级模式排练时间的幻灯片幻灯片,以记录每张幻灯片的时间,并且可以通过以下代码进行操作:

I want to open powerpoint slideshow with advance mode rehearse timing to record the time for every slide and i m able to do it by following code:

  ;        presentation.SlideShowSettings.AdvanceMode = ppt.PpSlideShowAdvanceMode.ppSlideShowRehearseNewTimings;

         Microsoft.Office.Interop.PowerPoint.SlideShowWindow sw = sst1.Run();

         sst1.ShowType = Microsoft.Office.Interop.PowerPoint.PpSlideShowType.ppShowTypeWindow;

         presentation.SlideShowSettings.AdvanceMode = ppt.PpSlideShowAdvanceMode.ppSlideShowRehearseNewTimings;
         Microsoft.Office.Interop.PowerPoint.SlideShowWindow sw = sst1.Run();
         sst1.ShowType = Microsoft.Office.Interop.PowerPoint.PpSlideShowType.ppShowTypeWindow;




但问题在于直到我点击幻灯片显示才开始录制,而另一个是我无法连续看到时间。只有当我点击幻灯片时,时间才会改变。 以下是我正在使用的代码..


but problem is that recording does not start till i click on slideshow and other one is that i am not able to see timing continuously. time changed only when i click on slideshow.  Following is the code that i am using..

using ppt= Microsoft.Office.Interop.PowerPoint;
// global variables
  Microsoft.Office.Interop.PowerPoint.Presentation presentation;
Microsoft.Office.Interop.PowerPoint.SlideShowView oSlideShowView;
ppt.Application application; 



Microsoft.Office.Interop.PowerPoint.Slide oSlide;
 application = new Microsoft.Office.Interop.PowerPoint.Application();
 presentation = application.Presentations.Open(@"RahulDravidRecord.pptx",MsoTriState.msoTrue, MsoTriState.msoTrue, MsoTriState.msoFalse);
Microsoft.Office.Interop.PowerPoint.SlideShowSettings sst1 = presentation.SlideShowSettings;
sst1.LoopUntilStopped = Microsoft.Office.Core.MsoTriState.msoFalse;
 ppt.Slides objSlides = presentation.Slides;
 sst1.StartingSlide = 1;
 sst1.EndingSlide = objSlides.Count; 
                presentation.SlideShowSettings.AdvanceMode = ppt.PpSlideShowAdvanceMode.ppSlideShowRehearseNewTimings;
                
                Microsoft.Office.Interop.PowerPoint.SlideShowWindow sw = sst1.Run();
                sst1.ShowType = Microsoft.Office.Interop.PowerPoint.PpSlideShowType.ppShowTypeWindow

我希望在没有点击的情况下开始排练计时slidshow和时间将持续显示,而不是我点击幻灯片放映。


I want that rehearse timing starts without click on slidshow and timing will show continuously rather than when i click on slide show.

推荐答案

我担心这不是这个问题的正确论坛。由于本论坛是讨论WPF发展问题。我将此线程移至

一般办公室开发
论坛,您可以在这里与许多专家联系。

I am afraid that here is not the correct forum for this issue. Since this forum is to discuss WPF development issue. I will move this thread to General Office Development forum, where you can contact many experts about this topic.

祝你玩得愉快!

此致,


这篇关于在排练录音模式下打开Powerpoint。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆