PC Review


Reply
Thread Tools Rate Thread

detect imported pictures vs. non-imported pictures

 
 
=?Utf-8?B?VG9ueSBMb2dhbg==?=
Guest
Posts: n/a
 
      20th Oct 2006
Is there a way to have my code tell if a given shape in a file is an imported
picture? Right now I see no way to do this.

Ultimately I want to convert each imported picture to a drawing object, but
I'd like to do it with code rather than have users manually click through an
entire file to see whether it is or isn't an imported picture.

I can loop through each slide in the file, and each shape on each slide, but
I don't see any way to tell me if a given shape is an imported picture.

Thanks.
 
Reply With Quote
 
 
 
 
Bill Dilworth
Guest
Posts: n/a
 
      20th Oct 2006
an imported picture as opposed to what? All pictures are either imported or
linked.

Do you mean an OLE object as opposed to a picture?


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..

"Tony Logan" <(E-Mail Removed)> wrote in message
news:394AD2D6-2B7C-43C0-B1A9-(E-Mail Removed)...
> Is there a way to have my code tell if a given shape in a file is an
> imported
> picture? Right now I see no way to do this.
>
> Ultimately I want to convert each imported picture to a drawing object,
> but
> I'd like to do it with code rather than have users manually click through
> an
> entire file to see whether it is or isn't an imported picture.
>
> I can loop through each slide in the file, and each shape on each slide,
> but
> I don't see any way to tell me if a given shape is an imported picture.
>
> Thanks.



 
Reply With Quote
 
=?Utf-8?B?VG9ueSBMb2dhbg==?=
Guest
Posts: n/a
 
      20th Oct 2006
Not sure as opposed to what. However, a bit of additional info:

In a given PowerPoint file, I can click on some of the shapes in the file,
then click on "Draw" on the Drawing Toolbar, then select "Ungroup." The
objects ungroup.

Other shapes I do the same thing to, but before the objects will ungroup, I
get a dialog stating "This is an imported object, not a group. If you convert
it to a Microsoft drawing object..."

For the latter shapes (the ones where I get the dialog), I'm trying to
figure out if there's a way I can search for them and convert them
programatically, rather than make a user do it manually.

If I loop through all the objects on a slide and look at the Shape.Type
property, there doesn't seem to be any way for me to tell whether a shape is
an imported object or not. But perhaps there's a different way to do it?

Also forgot to note that I'm running PowerPoint 2003, Windows XP with SP2.

Thanks.

"Bill Dilworth" wrote:

> an imported picture as opposed to what? All pictures are either imported or
> linked.
>
> Do you mean an OLE object as opposed to a picture?
>
>
> --
> Bill Dilworth
> A proud member of the Microsoft PPT MVP Team
> Users helping fellow users.
> http://billdilworth.mvps.org
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
> vestprog2@ Please read the PowerPoint FAQ pages.
> yahoo. They answer most of our questions.
> com www.pptfaq.com
> ..
>
> "Tony Logan" <(E-Mail Removed)> wrote in message
> news:394AD2D6-2B7C-43C0-B1A9-(E-Mail Removed)...
> > Is there a way to have my code tell if a given shape in a file is an
> > imported
> > picture? Right now I see no way to do this.
> >
> > Ultimately I want to convert each imported picture to a drawing object,
> > but
> > I'd like to do it with code rather than have users manually click through
> > an
> > entire file to see whether it is or isn't an imported picture.
> >
> > I can loop through each slide in the file, and each shape on each slide,
> > but
> > I don't see any way to tell me if a given shape is an imported picture.
> >
> > Thanks.

>
>
>

 
Reply With Quote
 
Steve Rindsberg
Guest
Posts: n/a
 
      21st Oct 2006
In article <3AD04700-9E7B-4EA5-B6A8-(E-Mail Removed)>, Tony Logan
wrote:
> Not sure as opposed to what. However, a bit of additional info:
>
> In a given PowerPoint file, I can click on some of the shapes in the file,
> then click on "Draw" on the Drawing Toolbar, then select "Ungroup." The
> objects ungroup.
>
> Other shapes I do the same thing to, but before the objects will ungroup, I
> get a dialog stating "This is an imported object, not a group. If you convert
> it to a Microsoft drawing object..."


You may get that message from several different object types:

- Embedded or Linked Picture objects if they're vector graphics (WMFs, EMFs,
sometimes EPS, which some versions of PPT will -- stupidly -- let you ungroup).
Embedded pictures that are pure raster formats don't allow ungrouping at all.

- Embedded OLE objects, Linked OLE objects

> For the latter shapes (the ones where I get the dialog), I'm trying to
> figure out if there's a way I can search for them and convert them
> programatically, rather than make a user do it manually.


Fundamentally, you cycle through the shapes, check each shape's .Type and if it's
7, 10, 11 or 13 you attempt to ungroup it.

With oShape
Select Case .Type
Case 7,10,11,13
On Error Resume Next
.Ungroup
If Err.Num <> 0 Then
Debug.Print "Oopsie on Shape " & .Name
End If
Case Else
' let it be
End Select
End With
> If I loop through all the objects on a slide and look at the Shape.Type
> property, there doesn't seem to be any way for me to tell whether a shape is
> an imported object or not. But perhaps there's a different way to do it?
>
> Also forgot to note that I'm running PowerPoint 2003, Windows XP with SP2.
>
> Thanks.
>
> "Bill Dilworth" wrote:
>
> > an imported picture as opposed to what? All pictures are either imported or
> > linked.
> >
> > Do you mean an OLE object as opposed to a picture?
> >
> >
> > --
> > Bill Dilworth
> > A proud member of the Microsoft PPT MVP Team
> > Users helping fellow users.
> > http://billdilworth.mvps.org
> > -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
> > vestprog2@ Please read the PowerPoint FAQ pages.
> > yahoo. They answer most of our questions.
> > com www.pptfaq.com
> > ..
> >
> > "Tony Logan" <(E-Mail Removed)> wrote in message
> > news:394AD2D6-2B7C-43C0-B1A9-(E-Mail Removed)...
> > > Is there a way to have my code tell if a given shape in a file is an
> > > imported
> > > picture? Right now I see no way to do this.
> > >
> > > Ultimately I want to convert each imported picture to a drawing object,
> > > but
> > > I'd like to do it with code rather than have users manually click through
> > > an
> > > entire file to see whether it is or isn't an imported picture.
> > >
> > > I can loop through each slide in the file, and each shape on each slide,
> > > but
> > > I don't see any way to tell me if a given shape is an imported picture.
> > >
> > > Thanks.

> >
> >
> >

>


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 
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
Imported pictures =?Utf-8?B?V2VuZHk=?= Windows XP MovieMaker 1 21st Aug 2007 05:22 PM
Vanishing imported pictures in Powerpoint =?Utf-8?B?S2F0ZQ==?= Microsoft Powerpoint 5 26th Jun 2007 01:23 AM
blurry pictures when imported to photostory =?Utf-8?B?bXdoaXRl?= Windows XP Photos 1 7th Sep 2006 03:56 PM
Imported Pictures =?Utf-8?B?R2FyeQ==?= Windows XP MovieMaker 0 10th Jun 2005 09:24 PM
Cannot see the pictures I have imported into powerpoint? =?Utf-8?B?YW1pdHZvcmFkZHM=?= Microsoft Powerpoint 2 29th Dec 2004 06:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:45 AM.