~~David~~ has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be greatly appreciated. Thanks,sub addMyFile{ my $file = shift; #this is the filename of the file i am adding my $fullpath = "$edmdir\\$file"; #full filename with path my $pptadd = Win32::OLE->new( 'PowerPoint.Application', 'Quit' )or + die "Can't create PowerPoint OLE: $!\n"; $pptadd->{Visible} = 1; my $addpres = $pptadd->Presentations->Open( $fullpath ) or die "Ca +n't open PowerPoint file '$fullpath': $!\n"; # this is the second pr +esentation.... i need to add it to the first one which has variable +$pres my @slides; my $j = 1; my $slide; while ($addpres->Slides($j)){$slides[$j] = $addpres->Slides($j);$j +++}; #this goes one too many, but I am working on it. my $k = 1; foreach $slide (@slides){ $pres -> Slides($slideIndex) = $slides[$ +k]; $slideIndex++; $k++}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding Slide to Powerpoint
by traveler (Parson) on Feb 16, 2007 at 22:10 UTC | |
by ~~David~~ (Hermit) on Feb 16, 2007 at 23:07 UTC | |
by traveler (Parson) on Feb 16, 2007 at 23:43 UTC | |
by ~~David~~ (Hermit) on Feb 17, 2007 at 00:00 UTC | |
by traveler (Parson) on Feb 17, 2007 at 00:14 UTC | |
| |
by ~~David~~ (Hermit) on Feb 20, 2007 at 16:34 UTC | |
|
Re: Adding Slide to Powerpoint
by Herkum (Parson) on Feb 17, 2007 at 00:25 UTC |