R
Rick Hodder
Hi,
I have code that parses powerpoint slides into a
particular HTML format. I need to retrieve the pictures
out of the presentation. The only way that I could do
this was to use automation to save the powerpoint as web
page, and then parse pres.xml to find the order and names
of slides, and then parse the slide HTM files looking for
corresponding <v:imagedata tags.
While doing this, I would walk the shape collection of
the slides, looking for a shape type of 7 (Picture) or 13
(OLE Embedded Picture) and then lookup the slide in
pres.xml and parse the slide HTM to find information on
the picture (file name from o:title, etc). I would also
calculate the equivalent height and width for the picture
from the shape's Height and Width properties.
This worked fine under Office2000, but under OfficeXP
Professional, (my client experiences the same problem in
OfficeXP) the Type property of Shape of pictures is 14
(Placeholder). So, now I cant find the pictures, and esp.
the height and width.
1. Is there another way to find out whether something is
a picture?
2. Is there a fix for this problem
I have tested this under OfficeXP Professional without
SPs, under SP1, and under SP2.
Thanks,
Rick
I have code that parses powerpoint slides into a
particular HTML format. I need to retrieve the pictures
out of the presentation. The only way that I could do
this was to use automation to save the powerpoint as web
page, and then parse pres.xml to find the order and names
of slides, and then parse the slide HTM files looking for
corresponding <v:imagedata tags.
While doing this, I would walk the shape collection of
the slides, looking for a shape type of 7 (Picture) or 13
(OLE Embedded Picture) and then lookup the slide in
pres.xml and parse the slide HTM to find information on
the picture (file name from o:title, etc). I would also
calculate the equivalent height and width for the picture
from the shape's Height and Width properties.
This worked fine under Office2000, but under OfficeXP
Professional, (my client experiences the same problem in
OfficeXP) the Type property of Shape of pictures is 14
(Placeholder). So, now I cant find the pictures, and esp.
the height and width.
1. Is there another way to find out whether something is
a picture?
2. Is there a fix for this problem
I have tested this under OfficeXP Professional without
SPs, under SP1, and under SP2.
Thanks,
Rick