use strict; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft PowerPoint'; my $filename = 'somehtml.html'; my $PptApp = Win32::OLE->GetActiveObject('PowerPoint.Application') || Win32::OLE->new('PowerPoint.Application', 'Quit'); $PptApp->{Visible} = 1; my $Presentation = $PptApp->Presentations->Open({Filename=>'somepres +entation.ppt', ReadOnly=>1}); $Presentation->SaveAs({Filename => $myfilename, FileFormat=> ppSaveAsHTML});
C-.
Update:I should have put some references in- I found the proper constant using the object viewer in Visual Basic (I added a reference to the PowerPoint libs to a proj). If you DON'T have VB installed, and you are using Active State's install,
then I would suggest using their web-based object browser. It's a file
named, aptly enough, browser.html, and I found mine in -
c:\perl\html\site\win32\ole\browser
In reply to Re: Win32::OLE Powerpoint HTML
by cacharbe
in thread Win32::OLE Powerpoint HTML
by bassplayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |