in reply to Powerpoint OLE
use strict; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft PowerPoint'; #Must Be capitalized to load constants--^ my $PptApp = Win32::OLE->GetActiveObject('PowerPoint.Application')|| Win32::OLE->new('PowerPoint.Application', 'Quit'); $PptApp->{Visible} = 1; my $Presentation = $PptApp->Presentations->Open({FileName=>'<SOMEFIL +ENAME>',ReadOnly=>1});
Now, please notice that the constants line REQUIRES you to use a capital, but the GetActiveObject and new do not necessarily require capitalization.
I have a sinking suspicion your problem lies in how you utilizied Open.
Hope this helps.
Quick Note: Also, you can't pass True, It's a type mismatch (You gotta flip the bool bit with an integer, which is different than flipping the bozo bit, but sometimes, not by much)
C-.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Powerpoint OLE
by smithwt (Initiate) on Sep 09, 2001 at 18:05 UTC | |
by cacharbe (Curate) on Sep 10, 2001 at 17:20 UTC | |
by Foggy Bottoms (Monk) on Jun 25, 2003 at 16:15 UTC |