This is a very simple Visual Basic source code to export all the slides from a PowerPoint presentation. This source code can export images in any specified image format like .jpg, .bmp or .gif. I wrote this function while I was working on my undergraduate project “PowerPoint to XML Interchangeability”.

I had to make some sort of PowerPoint Viewer to view the slides in the presentation. This Visual Basic function exports PowerPoint slides into image sequences so that you can display them into an image control. Later on these images can be exported into the file system at a temporary location for subsequent use.