Open PPTX at full screen from shellexecute

A

alverman

I want open a pptx presentation from my VB6 app.
The older version of presentation (ppt) opened with:
x = ShellExecute(hWnd, "Show", C:\pres1.ppt, vbNullString, vbNullString,
SW_SHOWMAXIMIZED)
and appare at full screen.
I have try with pptx file and presentation open in designtime (not a full)

Why ?

What is the correct system to open a pptx with shellexecute in full screen ?

Thanks, Alberto

P.S. Sorry for my english !! :)
 
A

alverman

What happens if PowerPoint is already running when you execute this command?
Does it work then?

Not know, is not my purpose.
I am using that command I open the executable associated with the ppt
extension but does not work the same way with pptx files.
If I rename the pptx files in ppt everything works fine but I would not have
to rename the file each time ppt
 
M

Matti Vuori

=?Utf-8?B?YWx2ZXJtYW4=?= said:
I am using that command I open the executable associated with the ppt
extension but does not work the same way with pptx files.
If I rename the pptx files in ppt everything works fine but I would
not have to rename the file each time ppt

I think that you mean "slide show" mode by "full screen". The only reason
for the problem that I can think of is that there is PPT Viewer in the
computer and .ppt files open in that. But you can make .pptx files open in
slide show mode by using command line option /s. Use that as the
ShellExecute parameter after the filename.

For other options, see http://www.pptfaq.com/FAQ00528.htm
 

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