Relocate and resize Powerpoint slide show window ... full screen f

A

Adrian Pell

There was a question here a while ago about programatically displaying a PPT
slide show window on a screen other the primary one. I have a similar issue
....

What I am trying to do is to display a slide show *not* in full screen, but
not in a window either. Actually, I intend to reparent the slide show window
into another window. However ... when I do this, there is a momentary
full-screen display before the window is moved.

I'm in VB.NET, so consider this code extract:

Imports PPTMe = Microsoft.Office.Interop.PowerPoint

Dim app as New PPTMe.Application
Dim pres as PPTMe.Presentation
pres = app.Presentations.Open("....filename...", msoTrue, msoTrue,
msoFalse)
With pres.SlideShowSettings.Run()
.Left = 100
.Top = 100
.Width = 400
.Height = 300
End With

What happens here is that the slide show window comes up full screen ... and
then gets resized as I request. Result: a full screen flash.

I tried using the SlideShowBegin event instead, and resizing in that method
.... but no difference.

So ... I don't see any other API that I can use. Is there some other
mechanism, like the previous registry key to determine the screen to use,
that would achieve this? Or opening the slide show off screen and then
moving it?

Any help gratefully appreciated!

Adrian
 
S

Steve Rindsberg

Adrian Pell said:
There was a question here a while ago about programatically displaying a PPT
slide show window on a screen other the primary one. I have a similar issue
....

What I am trying to do is to display a slide show *not* in full screen, but
not in a window either. Actually, I intend to reparent the slide show window
into another window. However ... when I do this, there is a momentary
full-screen display before the window is moved.

I'm in VB.NET, so consider this code extract:

Imports PPTMe = Microsoft.Office.Interop.PowerPoint

Dim app as New PPTMe.Application
Dim pres as PPTMe.Presentation
pres = app.Presentations.Open("....filename...", msoTrue, msoTrue,
msoFalse)

Instead of this:
With pres.SlideShowSettings.Run()
.Left = 100
.Top = 100
.Width = 400
.Height = 300
End With
With pres.SlideShowSettings()
.Left = 100
.Top = 100
.Width = 400
.Height = 300 .Run
End With

In other words, set the specs FIRST, then call the .Run method
 
A

Adrian Pell

Hello Steve

That woulid be nice .. but ...

Steve Rindsberg said:
Instead of this:



In other words, set the specs FIRST, then call the .Run method

Unfortunately, those location properties are properties of the
SlideShowWindow class that gets returned from the SlideShowSettings.Run()
method ... not properties of the SlideShowSettings class.

Ideally, you're right - set the location, then open, but it doesn't seem to
work that way. Any other ideas?

Adrian
 
S

Steve Rindsberg

Drat ... you're right, of course.

I can't think of anything offhand ...

I'd post the question in Public.PowerPoint also, though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top