Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / September 2007

Tip: Looking for answers? Try searching our database.

OLE objects in Powerpoint

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dragoon - 21 Sep 2007 19:11 GMT
Hi everyone -

Is there a way to force PowerPoint show up embedded objects somewhere
(either in slides or in properties window)? I have a Powpoint 2003 file
that, if open it in Powerpoint, there is no OLE objects found, but if we
look into the COM objects, it shows there is an OLE objects. the code we
used to detect there is an OLE object is like this:

   Dim ppt As PowerPoint.Application
  //    ...open powerpoint file...
   Set PPTDoc = ppt.Presentations.Open(filename, True, True, False)

   Dim s As PowerPoint.Shape
   For Each s In PPTDoc.SlideMaster.Shapes
       If s.Type = Office.MsoShapeType.msoEmbeddedOLEObject And s.Name =
"Base" Then
           Debug.Print "hidden object found"
       End If
   Next

I have the impression that sometimes Powerpoint automatically keeps an old
copy of the original presentation. Is it true? If so, how can we show the
user that there IS an object (no matter what) embedded in it.

Thanks in advance!
Steve Rindsberg - 21 Sep 2007 19:39 GMT
> Hi everyone -
>
[quoted text clipped - 18 lines]
> I have the impression that sometimes Powerpoint automatically keeps an old
> copy of the original presentation. Is it true?

Yes, when the presentation is under review.  And sometimes PPT loses track of
the embedded object ... it's there but PPT doesn't see it as a "review" object,
or there may be multiple such objects, in which case they can't all be named
"Base"

Look for embedded OLE objects that are also invisible.
For any found, check the OLE.ProgId
I don't recall what it's supposed to be, but you should have an example file
you can check, no?  IIRC, it's a PPT Show or Presentation.

If so, how can we show the
> user that there IS an object (no matter what) embedded in it.
>
> Thanks in advance!

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
dragoon - 24 Sep 2007 04:49 GMT
Steve -

Thanks for your input. The programid, as you expected, is powerpoint. Is
there a way to force Powerpoint to show this object somehow, or indicate
that there is such an object?

>> Hi everyone -
>>
[quoted text clipped - 44 lines]
> PPTools:  www.pptools.com
> ================================================
Steve Rindsberg - 24 Sep 2007 05:25 GMT
> Steve -
>
> Thanks for your input. The programid, as you expected, is powerpoint. Is
> there a way to force Powerpoint to show this object somehow, or indicate
> that there is such an object?

Try setting its .Visible property to True
If that doesn't help, you could add a rectangle whose dimensions match those of
the object.

> >> Hi everyone -
> >>
[quoted text clipped - 44 lines]
> > PPTools:  www.pptools.com
> > ================================================

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.