PC Review


Reply
Thread Tools Rate Thread

Bug: Shape object's Type property under OfficeXP

 
 
Rick Hodder
Guest
Posts: n/a
 
      17th Jul 2003
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
 
Reply With Quote
 
 
 
 
Steve Rindsberg
Guest
Posts: n/a
 
      17th Jul 2003
> 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.


If you turn off the Automatic Layout misfeature in PowerPoint XP, it will
stop converting pictures and other content into .Type 14 / Placeholder
objects. Tools, Autocorrect, and remove the check next to Automatic Layout
for inserted objects.

> 1. Is there another way to find out whether something is
> a picture?


Manually or programmatically duplicate the placeholder. It'll generally
revert to original .Type so you can do what you need to do on the dupe then
delete it when done.

> 2. Is there a fix for this problem


See above, to keep it fom happening further.
If we find out who designed and implemented this, you can have them.
After I'm done. ;-)

No real fix that I know of.


 
Reply With Quote
 
Rick Hodder
Guest
Posts: n/a
 
      18th Jul 2003
Thanks for the info, Steve!

Rick
 
Reply With Quote
 
Brian Reilly, MS MVP
Guest
Posts: n/a
 
      18th Jul 2003
Rick,
I just found this the other day too. Steve Rindsberg has the answer. I
already forgot it (g). Hey Stevie, wake up!

Brian Reilly, PowerPoint MVP
 
Reply With Quote
 
Steve Rindsberg
Guest
Posts: n/a
 
      18th Jul 2003
> I just found this the other day too. Steve Rindsberg has the answer. I
> already forgot it (g). Hey Stevie, wake up!


Already downthread someplace. Happy Birthday!


 
Reply With Quote
 
Rick Hodder
Guest
Posts: n/a
 
      18th Jul 2003
Hi Again Brian,

Do you know if there are plans to fix this in the next
service pack (if there even is one - i hear that Office
2003 is in beta now)?

Rick
 
Reply With Quote
 
Steve Rindsberg
Guest
Posts: n/a
 
      19th Jul 2003
> I haven't discussed this particular issue with MS and I'd say it is
> "by design" and will not change,


I've complained about it; I doubt it'll change any time soon, if at all.

>especially since the workaround is
> such a minor issue. In fact, most of us wouldn't run into it since we
> all have that placeholder thingie turned off.


Correction: Most of us who already have teethmarks on our backsides have it
turned off. It's on by default and most people, I'm convinced, never turn
it off because they have no idea it's there or why it causes the problems it
does.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there an object property that will return the file type? cla99009 Microsoft Excel Programming 6 19th Aug 2008 03:17 AM
Identify property/object type Vikram Microsoft Dot NET Framework 5 27th Feb 2008 04:02 PM
A friend brought me OfficeXP and an Upgrade I dwnld OfficeXP but . =?Utf-8?B?VGF0ZXMgRGFk?= Microsoft Access 1 21st Jan 2005 06:31 PM
How to create an object of type returned by a property Alex Microsoft VB .NET 2 15th Jun 2004 10:10 AM
How to find what object type is returned from Selection property ? Krzysztof Klimczak Microsoft Excel Programming 1 2nd Oct 2003 11:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:16 AM.