简体   繁体   中英

Pywin32 --> COM -->Powerpoint tutorial?

Does anyone know where I could find a good list of objects and methods (or a tutorial) for working with powerpoint 2010. I was able to locate this:

http://nbviewer.ipython.org/urls/raw.github.com/sanand0/ipython-notebooks/master/Office.ipynb

but was hoping to find something a little more in depth.

I've also the book "Python Programming on Win32" but this is not PPT specific.

The com32 module provides access to all the .com methods of PowerPoint so I would start with the MSDN PowerPoint 2010 API - one important trick is to create the python interfaces to the object libraries:

To do this in Python, run Python/Lib/site-packages/win32com/client/makepy.py and pick “Microsoft Office 12.0 Object Library” and “Microsoft PowerPoint 12.0 Object Library”. (If you have a version of Office other than 12.0, pick your version.) Found here

Then rename the resulting files something sensible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM