Re: Changing ActivePresentation

From: Steve Rindsberg (abuse_at_localhost.com)
Date: 03/05/05


Date: Sat, 05 Mar 2005 16:10:14 EST

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
================================================