~~David~~ has asked for the wisdom of the Perl Monks concerning the following question:

So i have multiple pictures that i am going to stack on top of one another in a power point slide, and want to add animation so that each picture will appear when I click... I am importing the following: use Win32::OLE::Const ('Microsoft PowerPoint'); use Win32::OLE::Const ('Microsoft Office'); Here is a snippet of my code:
$picture = $Slide->Shapes->AddPicture({ FileName => "$picture[$i]", LinkToFile => 0, SaveWithDocument => 1, Left =>370, Top => $top, Width => 350, Height => 350 }); $picture -> AnimationSettings({ EntryEffect => "ppEffectFlyFromLeft"});
I get all of the pictures added correctly, but I get the following error: Win32::OLE(0.1502) error 0x80020006: "Unknown name" "EntryEffect" in GetIDsOfNames for "AnimationSettings". Am I not importing the right OLE constants? Any help would be great. Is EntryEffect not a valid argument?

Update: I was barking up the wrong tree. Here is how:

my $time = $Slide->TimeLine->MainSequence; my $effect = $time->AddEffect({ Shape => $picture, effectId => msoAnimEffectZoom, });
~~David~~

Replies are listed 'Best First'.
Re: Adding Animation Settings To PowerPoint Object
by ikegami (Patriarch) on Mar 06, 2007 at 20:02 UTC
    You mention importing constants a few times, but you don't use any. Perhaps you want/need
    EntryEffect => ppEffectFlyFromLeft
      Sorry, still doesn't work.
      ~~David~~

        Are you still getting the same error? Any difference between your old code and the new, suggested solution?

        meh.
        Where does documentation for AnimationSettings say?