T
Tim
I'm having a problem running a simple blink animation from C#. From my
C# program, when I use SlideShowView.Next(), the objects set to blink
disappear. It takes another SlideShowView.Next() to make the objects
reappear. So, not only does the blink malfunction, but it takes two
SlideShowView.Next() calls to advance past the animation rather than
one.
If I use the same code in a VBA macro, the animation runs fine.
I start the slide show with the following:
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
C# program, when I use SlideShowView.Next(), the objects set to blink
disappear. It takes another SlideShowView.Next() to make the objects
reappear. So, not only does the blink malfunction, but it takes two
SlideShowView.Next() calls to advance past the animation rather than
one.
If I use the same code in a VBA macro, the animation runs fine.
I start the slide show with the following:
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