~~David~~ has asked for the wisdom of the Perl Monks concerning the following question:
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?$picture = $Slide->Shapes->AddPicture({ FileName => "$picture[$i]", LinkToFile => 0, SaveWithDocument => 1, Left =>370, Top => $top, Width => 350, Height => 350 }); $picture -> AnimationSettings({ EntryEffect => "ppEffectFlyFromLeft"});
Update: I was barking up the wrong tree. Here is how:
my $time = $Slide->TimeLine->MainSequence; my $effect = $time->AddEffect({ Shape => $picture, effectId => msoAnimEffectZoom, });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding Animation Settings To PowerPoint Object
by ikegami (Patriarch) on Mar 06, 2007 at 20:02 UTC | |
by ~~David~~ (Hermit) on Mar 06, 2007 at 23:24 UTC | |
by stonecolddevin (Parson) on Mar 07, 2007 at 08:23 UTC | |
by ~~David~~ (Hermit) on Mar 07, 2007 at 16:28 UTC | |
by Anonymous Monk on Mar 07, 2007 at 07:35 UTC |