Well so far, I've managed to do easy things thanks to the MSDN such as adding slides (where and which exact type) and drawing text areas, shapes, labels... However, I can't seem to add text : one of the VB syntaxes (there's several ways apparently) MS provides is the following :
Set oTitle = ActivePresentation.Slides(2).Objects.Title
This would be the VB code (according to MSDS). I assume the perl code would be :
$ppt->ActivePresentation->Objects->Slides($nb)->Title->Text = "TaGaDa"
where $ppt is
$ppt = Win32::OLE->GetActiveObject(MSPPT.'.Application') and works just fine.
However, Perl doesn't seem to know what objects. is and returns the following error :
Can't call method "Slides" on an undefined value at D:\source\powerpoint.pl line 23.
MSDSN reference is here :
http://www.msdn.microsoft.com/library/en-us/dnpower97/html/ppppt_w95.asp?frame=true#ppppt_w95_work

If u have any idea, let me know, thanks !!!

In reply to Re: Re: How can I access data included in a ppt slide ? by Foggy Bottoms
in thread How can I access data included in a ppt slide ? by Foggy Bottoms

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.