Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: Adding Slide to Powerpoint

by traveler (Parson)
on Feb 17, 2007 at 00:14 UTC ( #600559=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Adding Slide to Powerpoint
in thread Adding Slide to Powerpoint

My Bad. Your $slides are just pointers to ppt slides. Try

my @slides; my $j = 1; my $slide; while ($addpres->Slides($j)){$slides[$j] = $addpres->Slides($j);$j +++}; my $k = 1; foreach $slide (@slides){ # make a new slide my $s = $pres -> Slides->Add($slideIndex,$slides[$k]->Layout) $slides[$k]->Copy; #get what you want $s->Paste; #save it $slideIndex++; $k++; }
I always forget the details of the PPT DOM details.


Comment on Re^5: Adding Slide to Powerpoint
Download Code
Re^6: Adding Slide to Powerpoint
by ~~David~~ (Hermit) on Feb 19, 2007 at 23:59 UTC
    Thank you for all your help, and I am sorry that I am having such a hard time getting this, but your last fix really helped out. I now get slides that are added, and that are the correct layout, but no text? The error I get is Win32::OLE(0.1502) error 0x80048240 in METHOD/PROPERTYGET "Slides" at powerpoint_create_withEDM.pl line 259 Win32::OLE(0.1502) error 0x80020003: "Member not found"
    ~~David~~
      You may need to do a select all before the .Copy

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://600559]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-10-23 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls