T
tgaihdc
I'm trying to drive a slideshow in PowerPoint 2002 with a C#
application built in Visual Studio 2003. I'm using the
SlideShowView.Next() method. The first call to Next() causes the
object with a onclick animation to disappear. The next call to Next()
causes the object to reappear. Using the same code in a VBA macro runs
the slideshow perfectly. Does any one know what's going wrong? I've
attached the relevant sample code:
PowerPoint.SlideShowSettings s =
m_oPPT.ActivePresentation.SlideShowSettings;
s.ShowType = PowerPoint.PpSlideShowType.ppShowTypeSpeaker;
s.LoopUntilStopped = Microsoft.Office.Core.MsoTriState.msoFalse;
s.ShowWithNarration = Microsoft.Office.Core.MsoTriState.msoTrue;
s.ShowWithAnimation = Microsoft.Office.Core.MsoTriState.msoTrue;
s.RangeType = PowerPoint.PpSlideShowRangeType.ppShowAll;
s.AdvanceMode =
PowerPoint.PpSlideShowAdvanceMode.ppSlideShowUseSlideTimings;
s.PointerColor.SchemeColor =
PowerPoint.PpColorSchemeIndex.ppForeground;
s.Run();
In a button handler, I've reduced the code to:
PowerPoint.SlideShowWindows win = m_oPPT.SlideShowWindows;
win.Item(1).View.Next();
Any assistance would be greatly appreciated. Thanks.
Tim
application built in Visual Studio 2003. I'm using the
SlideShowView.Next() method. The first call to Next() causes the
object with a onclick animation to disappear. The next call to Next()
causes the object to reappear. Using the same code in a VBA macro runs
the slideshow perfectly. Does any one know what's going wrong? I've
attached the relevant sample code:
PowerPoint.SlideShowSettings s =
m_oPPT.ActivePresentation.SlideShowSettings;
s.ShowType = PowerPoint.PpSlideShowType.ppShowTypeSpeaker;
s.LoopUntilStopped = Microsoft.Office.Core.MsoTriState.msoFalse;
s.ShowWithNarration = Microsoft.Office.Core.MsoTriState.msoTrue;
s.ShowWithAnimation = Microsoft.Office.Core.MsoTriState.msoTrue;
s.RangeType = PowerPoint.PpSlideShowRangeType.ppShowAll;
s.AdvanceMode =
PowerPoint.PpSlideShowAdvanceMode.ppSlideShowUseSlideTimings;
s.PointerColor.SchemeColor =
PowerPoint.PpColorSchemeIndex.ppForeground;
s.Run();
In a button handler, I've reduced the code to:
PowerPoint.SlideShowWindows win = m_oPPT.SlideShowWindows;
win.Item(1).View.Next();
Any assistance would be greatly appreciated. Thanks.
Tim