C# Powerpoint SlideShowEnd problems -


I create a C # application which runs a PowerPoint slideshow. After the slide show is over, I want to stop PowerPoint and return to my program again. The problem I am facing is that I have to click on the end of the slideshow to return to my schedule ...

Is there any way that I am unable to wait for a click?

Private Zero Show Presentation () {String Strepeation, Stripic; Strpresentation = Application.StartupPath + "\\ testje.ppt"; Bull b asistanton; //PowerPoint.Application objApp; PowerPoint.Presentations objPresSet; PowerPoint.Presentation objPres; PowerPoint.Slides objSlides; PowerPoint._Slide objSlide; PowerPoint.TextRange objTextRng; PowerPoint.Shapes objShapes; PowerPoint.Shape objShape; PowerPoint.SlideShowWindows objSSWs; PowerPoint.SlideShowTransition objSST; PowerPoint.SlideShowSettings objSSS; PowerPoint.SlideRange objSldRng; Graph.Chart objChart; // Create a new presentation based on a template. ObjApp = new PowerPoint.Application (); ObjApp.SlideShowBegin + = New Microsoft.Office.Interop.PowerPoint.EApplication_SlideShowBeginEventHandler (powerpnt_SlideShowBegin); ObjApp.SlideShowEnd + = New Microsoft.Office.Interop.PowerPoint.EApplication_SlideShowEndEventHandler (powerpnt_SlideShowEnd); ObjApp.SlideShowNextSlide + = New Microsoft.Office.Interop.PowerPoint.EApplication_SlideShowNextSlideEventHandler (powerpnt_SlideShowNextSlide); ObjApp.Visible = MsoTriState.msoTrue; ObjPresSet = objApp.Presentations; ObjPres = objPresSet.Open (Presentation, MsoTriState.msoFalse, MsoTriState.MsoTrue, MsoTriState.MsoTrue); ObjSlides = objPres.Slides; // Prevent Office Assistant from displaying alert messages: bAssistantOn = objApp.Assistant.On; ObjApp.Assistant.On = false; Play slideshow 1 to 3 with slides. ObjSSS = objPres.SlideShowSettings; ObjSSS.StartingSlide = 1; ObjSSS.EndingSlide = objSlides.Count; ObjSSS.Run (); } Private Zero PowerPintSylide Showand (Microsoft Office. PowerPoint presentation presentation) {objApp.Quit (); }

In short, the slideshow is played only when the last slide is played and I click on the presentation I play in the last slide when I want a slideshow ... < /p>

There is an option in PowerPoint settings: end up with black side. You can try to see if it exists in COM or not.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -