Save picture programatically

A

Andrei Csibi

Does anyone know how to save a picture programatically from the Presentation
(I mean using PowerPoint Object Model)?
 
D

David M. Marcovitz

Do you want to do something like this? It selects the picture named
"Picture 4" on current slide and saves it as a JPG picture named foo.jpg.

ActiveWindow.Selection.SlideRange.Shapes("Picture 4").Select
ActivePresentation.SaveAs FileName:="foo.jpg", FileFormat:=ppSaveAsJPG

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
S

Shyam Pillai

Andrei,
If you want to export the shape selection:
call ActiveWindow.Selection.ShapeRange.Export("E:\sss.png",ppShapeFormatPNG)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top