in reply to Win32::PowerPoint to create slides

From looking at the source code of Win32::PowerPoint, the ->new_slide method doesn't return any useful information. The newly allocated slide is stored in $self->{slide}, so you should be able to access it there. It seems that Win32::PowerPoint relies on the idea of having only one "current" slide on which all its methods operate, so that won't buy you much.

The @slides array in your code is to be populated by yourself. Somewhere, you need to have your own idea of what should go into the slides.

Replies are listed 'Best First'.
Re^2: Win32::PowerPoint to create slides
by toolic (Bishop) on Jan 12, 2009 at 14:55 UTC
    To supplement Corion's thought on the @slides array, I think the module author assumes that you might create your own Perl data structure.

    Instead of your "for" loop, just try to create a single slide with some dummy information:

    $ppt_ref->add_text('Here is my title'); $ppt_ref->add_text('This is the 1st line of my text'); $ppt_ref->add_text('This is the 2nd line of my text');