how to code to extract bmp or jpg of every slide in ppt?

  • Thread starter Thread starter jhuang
  • Start date Start date
J

jhuang

I want extract bmp from ppt slides, but i can't find such
source code for reference.
Is VBA a way?
 
You can publish your presentation as a web page, and it will extract all the sound files, and image files for you.

--
<>Please post all follow-up questions/replies to the newsgroup<>
<><><>Do Provide The Version Of PowerPoint You Are Using<><><>
<><><>Do Not Post Attachments In This Newsgroup<><><>
Michael Koerner [MS PPT MVP]


I want extract bmp from ppt slides, but i can't find such
source code for reference.
Is VBA a way?
 
jhuang said:
I want extract bmp from ppt slides, but i can't find such
source code for reference.
Is VBA a way?

Sure. Take a look at the Microsoft Developer Network documentation/example
here on the Export Method as it applies to a Presentation Object:
http://msdn.microsoft.com/library/en-us/vbapp10/html/ppmthExport.asp?frame=true

The reason I recommend the Export Method (over SaveAs) is that it allows you
to optionally set the pixel resolution of the output image. Otherwise, your
image is saved to 72 DPI (for PPT XP, 2K, etc) in the size of a slide (the
default slide size is 10" x 7.5" which makes the default output image
720x540 pixels). Be forewarned that setting different aspect ratios will
cause PowerPoint to scale your image without preserving the aspect ratio of
the slide. You might want to consider using the page setup property of a
presentation to determine the output size of your pixels. See the PageSetop
property documentation here:

http://msdn.microsoft.com/library/en-us/vbapp10/html/ppproPageSetup.asp?frame=true

-Mike Fried
PowerPoint Development Team

Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top