PPT => Bitmaps

  • Thread starter Thread starter Sascha Kerschhofer
  • Start date Start date
S

Sascha Kerschhofer

Hello everyone,

does somebody knows how I can extract Bitmaps from a Powerpoint file (one
per slide)? I found some ressources which opens Powerpoint as application
and controls it programmatically. But I am looking for a way to do this
without the help of Powerpoint itself. Would I need a kind of a rendering
engine for this file format? Or are kind of "thumbnails" embeded inside if
such a file?
Will the "Microsoft Power Point 9.0 Object Library" help me or what is it
usefull for?

Thank you for any advice.

Sascha
 
Sascha,

I would think that the powerpoint file format is something that is not a
publically known format, and because of that, would recommend going through
the object model that you found. If you have a piece of code that shows how
to do it, then we can probably show you how to do it in .NET.

And yes, you will have to use the Microsoft Power Point 9.0 Object
Library.

Hope this helps.
 
Thank you Nicholas,

I found code under
http://devhawk.net/default.aspx?date=2004-03-10
the author opens the file in powerpoint in fullscreen mode and than produces
screenshots per slide. This is indeed not what I want since you can't use
the maschine while doing this.

Another Variant is

PowerPoint.ApplicationClass pptApp = new PowerPoint.ApplicationClass();
pptApp.Activate();
Office.MsoTriState obj = Office.MsoTriState.msoTrue;
PowerPoint.Presentation pp = pptApp.Presentations.Open("path of your
presentation",obj,obj,obj);
PowerPoint.SlideShowWindow slideShow = pp.SlideShowSettings.Run();

Maybe I could call the "save as web pages". Anyway I use Powerpoint itself
to get my Bitmaps.

Going through the object model means extracting properties of shapes and
then Render it anyway. Is this what you ment? Or is there something like a
Slide.ExtractToImage() Method. Where can I find the documentation of the
object model?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbapp11/html/pptocOMMap.asp
seems like the OM of the Powerpoint Application itself rather than of the
Document.

Sascha



Nicholas Paldino said:
Sascha,

I would think that the powerpoint file format is something that is not a
publically known format, and because of that, would recommend going through
the object model that you found. If you have a piece of code that shows how
to do it, then we can probably show you how to do it in .NET.

And yes, you will have to use the Microsoft Power Point 9.0 Object
Library.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sascha Kerschhofer said:
Hello everyone,

does somebody knows how I can extract Bitmaps from a Powerpoint file (one
per slide)? I found some ressources which opens Powerpoint as application
and controls it programmatically. But I am looking for a way to do this
without the help of Powerpoint itself. Would I need a kind of a rendering
engine for this file format? Or are kind of "thumbnails" embeded inside if
such a file?
Will the "Microsoft Power Point 9.0 Object Library" help me or what is it
usefull for?

Thank you for any advice.

Sascha
 
Sascha,

As far as I know, the Powerpoint object model doesn't provide a way to
do this. Basically, you will have to use the recommendation that the site
makes.

Are you trying to display your powerpoint presentations on the web? I
thought that MS had a product that will take powerpoint presentations and
make them more web-friendly (I forget the name of it, but they put all the
presentations from Tech-Ed on the web)?

Also, given the dynamic nature of powerpoint presentations, it might not
be enough to just get snapshots of the slides (although for a good number of
them, it would be ok).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sascha Kerschhofer said:
Thank you Nicholas,

I found code under
http://devhawk.net/default.aspx?date=2004-03-10
the author opens the file in powerpoint in fullscreen mode and than
produces
screenshots per slide. This is indeed not what I want since you can't use
the maschine while doing this.

Another Variant is

PowerPoint.ApplicationClass pptApp = new PowerPoint.ApplicationClass();
pptApp.Activate();
Office.MsoTriState obj = Office.MsoTriState.msoTrue;
PowerPoint.Presentation pp = pptApp.Presentations.Open("path of your
presentation",obj,obj,obj);
PowerPoint.SlideShowWindow slideShow = pp.SlideShowSettings.Run();

Maybe I could call the "save as web pages". Anyway I use Powerpoint itself
to get my Bitmaps.

Going through the object model means extracting properties of shapes and
then Render it anyway. Is this what you ment? Or is there something like a
Slide.ExtractToImage() Method. Where can I find the documentation of the
object model?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbapp11/html/pptocOMMap.asp
seems like the OM of the Powerpoint Application itself rather than of the
Document.

Sascha



in
message news:%[email protected]...
Sascha,

I would think that the powerpoint file format is something that is
not a
publically known format, and because of that, would recommend going through
the object model that you found. If you have a piece of code that shows how
to do it, then we can probably show you how to do it in .NET.

And yes, you will have to use the Microsoft Power Point 9.0 Object
Library.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sascha Kerschhofer said:
Hello everyone,

does somebody knows how I can extract Bitmaps from a Powerpoint file (one
per slide)? I found some ressources which opens Powerpoint as application
and controls it programmatically. But I am looking for a way to do this
without the help of Powerpoint itself. Would I need a kind of a rendering
engine for this file format? Or are kind of "thumbnails" embeded inside if
such a file?
Will the "Microsoft Power Point 9.0 Object Library" help me or what is it
usefull for?

Thank you for any advice.

Sascha
 
Hi Nicholas,
Are you trying to display your powerpoint presentations on the web? I
thought that MS had a product that will take powerpoint presentations and
make them more web-friendly (I forget the name of it, but they put all the
presentations from Tech-Ed on the web)?

No. I want to display the list of Slides in my WinApp beyond each other.
Further I would like to Write a "Player" which can display single slides
among others and navigate with back-forward buttons. Third I need the
slides as Bitmaps so that FOP can process them to PDFs.

Have you any ideas left? What about the Clipboard?

Sascha
 
Back
Top