Slideshow width/heigh mismatch with window width/height

R

Roland

Hi!

Can anyone kindly suggest a pointer on how to reduce the
height of the slide show window? - (I would like to have
another application window showing when the slides are
presented). Or is it not possible?


I have tried every which way to do this and the best I
can achieve is to write an Add-In which calls
slideshowwindow.SetHeight().


What happens with this is that the slide window is
reduced in height - but then so is the width!


Also can anyone suggest why the height that you get with
slideshowwindow.GetHeight() does not correspond to the
screen pixel height?


Thanks,
Ajay
 
R

Roland

I guess you havn't understood the problem, When I set the width and
heigh of slideshowwindow to widht and heigh of container window that
embeds it, doesn't get fitted. Width and height of slideshow window is
more than the size of window/ I guess poewrpoint slideshow uses
different mapping mode that window.

Can you tell me is there any solution to fit /resize slideshow window
to fit to container window ?
 
C

Chirag

Hi Ajay,

SlideShowWindow uses points as its measurement. You need to convert between
pixels and points as shown in
http://officeone.mvps.org/vba/positioning_using_pixels.html to use the
container's pixel-based dimensions with SlideShowWindow's point-based
dimensions. Although the example use of ConvertPixelsToPoints() is for
userforms, it is applicable to SlideShowWindow as well.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
R

Roland

Chirag,
Thanks for ur reply. It worked well.

Do you have any idea on how to embed powerpoint into window/dialog ?
What we need to do to do so...Sample code will be appreciated.

Thanks,
Ajay
 

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