Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

vsto start a powerpoint animation on an independent timeline from code

$
0
0

Hello,

I have what I hope is a really simple question.  I am running Office 2010 and Visual Studio 2010.

I have written a PowerPoint plugin which interfaces with external hardware.  I have a slide with eight shapes, each with an independent emphasis animation associated with it (currently triggered by clicking the shape).

I would like to start the animation of any given shape from my VSTO addin.

I have tried various methods, the most extreme was to raise an API call to click the slideshow window at a given point however I could not get that to work.

I was hoping that I could use the following code (which also does not work)-

eff = Slide.TimeLine.InteractiveSequences(pCatNo).Item(1)
Debug.Print(eff.Behaviors.Count)
Dim ab As PowerPoint.AnimationBehavior = eff.Behaviors.Add(PowerPoint.MsoAnimType.msoAnimTypeCommand)
Dim ac As PowerPoint.CommandEffect = ab.CommandEffect
ac.Type = PowerPoint.MsoAnimCommandType.msoAnimCommandTypeVerb
ac.Command = "Play"

But the documentation regarding the CommandEffect is a little ambiguous.  I suspect it will only work on embedded media rather than a native powerpoint shape.

If anyone could offer any advice or point me in the right direction I would really appreciate it.

Jeff


Jeff


Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>