Open PPTX at full screen from shellexecute

  • Thread starter Thread starter alverman
  • Start date Start date
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 !! :)
 
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
 
=?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
 
Back
Top