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~~

In reply to Adding Animation Settings To PowerPoint Object by ~~David~~

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.