convert ppt file to a XML file

W

william

I am trying to convert ppt to a xml file, which means that I will also
extract the different shapes in the ppt file. What I am using is VS.Net2005
plus office 2003 interop assembly. The problem is that when I try to extract
the animated gif from the ppt file, the extracted gif image file is not
animated. And also how can I retrieve the original image's width and height,
so when I extract the image I can use these values.

Here is my current C# code:
int pixWidth = activeWindow.PointsToScreenPixelsX(shape.Width);
int pixHeight = activeWindow.PointsToScreenPixelsY(shape.Height);
shape.Export(fullFileName, PowerPoint.PpShapeFormat.ppShapeFormatGIF,
pixWidth, pixHeight, PowerPoint.PpExportMode.ppScaleToFit);

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...736e&dg=microsoft.public.office.developer.vba
 
C

Cindy M.

Hi =?Utf-8?B?d2lsbGlhbQ==?=,
I am trying to convert ppt to a xml file, which means that I will also
extract the different shapes in the ppt file. What I am using is VS.Net2005
plus office 2003 interop assembly. The problem is that when I try to extract
the animated gif from the ppt file, the extracted gif image file is not
animated. And also how can I retrieve the original image's width and height,
so when I extract the image I can use these values.
Since you've posted this as a "Suggestion", not a question, I feel I should
point out that Microsoft has made XML the basic file format for Office 2007
(including Powerpoint) and that there should be a converter available that will
allow earlier versions to both open and save in that file format.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
W

william

Sorry, I should put this on the question list. What I described is current
solution I had. I still want to know the better solution. Becasue you save
the ppt file as the html files, it can retain the animated gif file.
 
C

Cindy M.

Hi =?Utf-8?B?d2lsbGlhbQ==?=,
What I described is current
solution I had. I still want to know the better solution.
The optimal place to get a discussion going, then, would be
the one-and-only powerpoint newsgroup, where the
specialists hang out :)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
S

Steve Rindsberg

Sorry, I should put this on the question list. What I described is current
solution I had. I still want to know the better solution. Becasue you save
the ppt file as the html files, it can retain the animated gif file.

That's one answer.

Save as HTML programmatically. I forget the rules offhand, but as I recall it wasn't too
difficult to work out which of the saved files was the GIF that matched the one on any given
slide.
 

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