good chemistry is complicated,
and a little bit messy -LW
Re: Using Win32::OLE and Excel - Tips and Tricksby monarch (Priest)
|on Jul 26, 2005 at 02:46 UTC||Need Help??|
I wanted to add a note on PowerPoint, as when I googled for "powerpoint Win32::OLE tutorial" this node was the very top link!
So here is how I've gone about creating a PowerPoint presentation.
First load the modules:
..then setting warnings as per the Excel tutorial..
Next, name the file that will be saved:
.. and then fire up the PowerPoint application
Create a presentation (much like creating a workbook in Excel)
Create a slide (like creating a worksheet in Excel)
Insert a picture into my slide
Insert a table
There's a lot more that can be done, of course, and the best reference is at MSDN's Visual Basic Reference for PowerPoint. All the methods and properties used here are listed there. In addition, when calling a method, you often can leave parameters off the end and defaults will be used for you.
Another note to add.. if you're not running PowerPoint at the time this script is run, then it will happen in the background. The only way to know for sure if it worked is to open the file you created and visually verify everything was added.