🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.office.developer.automation
Article #14

Re: Changing ActivePresentation

#14
From: Steve Rindsberg
Date: Sat, 05 Mar 2005 21:10
36 lines
2874 bytes
In article <1110013549.787152@news.liwest.at>, Roland Leisch wrote:
> > I'm probably mistaken, but it looks like you're referencing 
> > 
> > Presentions.Item(some_number)
> > 
> > But if there are no presentations open, there can be no 
> > Presentations.Item(anything)
> 
> Ok - now I understand what you mean! But I open a presentation 
> programatically and it is displayed in the ole container and it is NOT 
> closed - so I thought Windows-Count has alwayys to be at least 1 until I 
> close the presentation. Nevertheless the Windows-Count is still zero.
> 
> The very strange thing is that this behavior only occours if I open a 
> second ole contianer containing a powerpoint presentation. With only one 
> ole container everything works fine!

Hmmm.  I've only played briefly with PPT shows in an OLE container, but a 
couple things strike me as worth looking at:

While the container isn't activated, there wouldn't be any instance of PPT, so 
any reference to a PPT object would throw an error.  That's probably obvious to 
you, so pardon my mentioning it.  ;-)

But another point:  PowerPoint is a single-instance application.  You can't 
have two copies of the same version running at once.  How that affects what 
happens to presentations in an OLE container, I don't know, but  .... who 
knows, maybe it's relevant?



--
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
Technical Details
Message-ID: <VA.0000131f.3c5f10cc@localhost.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!80.239.136.19.MISMATCH!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!t-online.de!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
References: <1109601286.547140@news.liwest.at> <VA.000012c9.224fc27a@localhost.com> <1109661686.51153@news.liwest.at> <VA.000012d4.26bbf1a0@localhost.com> <1110013549.787152@news.liwest.at>

Show Full Headers
Complete Article Headers
X-Google-Thread: fd4fc,e54bbe412343dd08
X-Google-Thread: f962e,e54bbe412343dd08
X-Google-Thread: fe15c,e54bbe412343dd08
X-Google-Thread: fd196,e54bbe412343dd08
X-Google-Attributes: gidfd4fc,gidf962e,gidfe15c,gidfd196,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 05 Mar 2005 16:10:14 EST
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va
Organization: PowerPoint MVP
Message-ID: <VA.0000131f.3c5f10cc@localhost.com>
Subject: Re: Changing ActivePresentation
From: Steve Rindsberg <abuse@localhost.com>
Reply-To: abuse@localhost.com
References: <1109601286.547140@news.liwest.at> <VA.000012c9.224fc27a@localhost.com> <1109661686.51153@news.liwest.at> <VA.000012d4.26bbf1a0@localhost.com> <1110013549.787152@news.liwest.at>
Newsgroups: microsoft.public.office.developer.automation,microsoft.public.vb.ole.automation,microsoft.public.win32.programmer.ole,borland.public.delphi.oleautomation
NNTP-Posting-Host: nr30-69-61-180-104.fuse.net 69.61.180.104
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!80.239.136.19.MISMATCH!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!t-online.de!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
Lines: 1