How to export powerpoint slides to pictures?

I am working on a c# app, and I want to use my app to read a powerpoint file, and than export them into pictures that the pictures' name is the ppt's page title name so that I can use the picutures. Please help me !!
ed_dalianAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ed_dalianAuthor Commented:
I want it on powerpoint 2003
0
Bob LearnedCommented:
Export what into pictures?  The slides?

Bob
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

ed_dalianAuthor Commented:
Yes, I want more people could see it, so that I could get more help, please help me.
0
Bob LearnedCommented:
First of all, it is just confusing if I see the same question twice.  It is recommended to only ask the question once, and then add a "pointer" question.
0
Bob LearnedCommented:
Here is a class to work with PowerPoint:

// 1) Add a COM reference to the Micro$oft PowerPoint 11.0 type library.
// 2) Add a COM reference to the Micro$oft Graph 11.0 type library.

using System;
using System.Drawing;
using Microsoft.Office.Interop;
using Microsoft.Office.Interop.PowerPoint;
using Microsoft.Office.Core;
using System.Runtime.InteropServices;
using System.Reflection;

public enum SaveAsType
{
  AddIn = PpSaveAsFileType.ppSaveAsAddIn,
  BMP = PpSaveAsFileType.ppSaveAsBMP,
  Default = PpSaveAsFileType.ppSaveAsDefault,
  EMF = PpSaveAsFileType.ppSaveAsEMF,
  GIF = PpSaveAsFileType.ppSaveAsGIF,
  Html = PpSaveAsFileType.ppSaveAsHTML,
  HtmlDual = PpSaveAsFileType.ppSaveAsHTMLDual,
  HtmlV3 = PpSaveAsFileType.ppSaveAsHTMLv3,
  JPG = PpSaveAsFileType.ppSaveAsJPG,
  MetaFile = PpSaveAsFileType.ppSaveAsMetaFile,
  PNG = PpSaveAsFileType.ppSaveAsPNG,
  RTF = PpSaveAsFileType.ppSaveAsRTF,
  TIF = PpSaveAsFileType.ppSaveAsTIF,
  Presentation = PpSaveAsFileType.ppSaveAsPresentation
}

public class PowerPointPresentation
{

  private Application _app = new Application();
  private Presentation _presentation;
  private Slide _slide;

  ~PowerPointPresentation()
  {
    _app.DisplayAlerts = PpAlertLevel.ppAlertsNone;
    _presentation.Close();
    _app.Quit();
    Marshal.ReleaseComObject(_slide);
    Marshal.ReleaseComObject(_presentation);
    Marshal.ReleaseComObject(_app);
    _slide = null;
    _presentation = null;
    _app = null;
  }

  public bool ApplicationVisible
  {
    get { return (_app.Visible == MsoTriState.msoTrue);
    }
    set
    {
      if (value)
      {
        _app.Visible = MsoTriState.msoTrue;
      }
      else
      {
        _app.Visible = MsoTriState.msoFalse;
      }
    }
  }

  public void OpenPresentation(string fileName)
  {
    if (_app == null)
    {
      throw new ArgumentNullException("Application not initialized");
    }
    _presentation = _app.Presentations.Open(fileName,
      MsoTriState.msoFalse, MsoTriState.msoTrue, MsoTriState.msoTrue);
  }

  public void SelectSlide(int index)
  {
    _slide = this.GetSlide(index);
  }

  public void SaveAs(string fileName)
  {
    this.SaveAs(fileName, SaveAsType.Presentation);
  }

  public void SaveAs(string fileName, SaveAsType type)
  {
    _presentation.SaveAs(fileName, (PpSaveAsFileType)type, MsoTriState.msoFalse);
  }

  public Slide GetSlide(int index)
  {
    if (_presentation == null)
    {
      throw new ArgumentNullException("Presentation not open");
    }
    if (index < 1 || index > _presentation.Slides.Count)
    {
      throw new ArgumentOutOfRangeException("Out of range", "Slide");
    }
    return _presentation.Slides[index];
  }

}

Bob
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob LearnedCommented:
Example:

  PowerPointPresentation pps = new PowerPointPresentation();
  pps.OpenPresentation(@"C:\Temp\Presentation1.ppt");
  pps.SaveAs(@"C:\Temp\Presentation.jpg", SaveAsType.JPG);

Bob
0
ed_dalianAuthor Commented:
TheLearnedOne , Thank you very much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.