Re: Run Powerpoint Slideshows from VFP6 by jilliw
jilliw
Mon Aug 21 04:56:50 CDT 2006
Hi Roger,
Thanks for the codes. It is very helpful but I am facing another big
problem i.e. the message appeared at the end of the presentation that
said "End of slide show. Click to Exit" will pause without returning to
the VFP application.
Do you have any similar solution in VFP OLE? I am actually creating a
kiosk application in VFP6 that can auto run multiple Powerpoint
slideshows.
Thanks
JW
Roger Ansell wrote:
> You could save your presentation as a Powerpoint Slideshow (*.pps) then use
> this code to run it:
> Declare Integer ShellExecute in Shell32 ;
> INTEGER hwnd,;
> STRING lpOperation,;
> STRING lpFile,;
> STRING lpParameters,;
> STRING lpDirectory,;
> INTEGER nShowCmd
>
> ShellExecute(0,"open","Slides.pps","","",0)
>
> -Roger
>
>
>
> <jilliw@gmail.com> wrote in message
> news:1156130398.738251.46380@75g2000cwc.googlegroups.com...
> > Hi everyone,
> >
> > I am using VFP6 OLE to auto run Powerpoint slide shows with this codes
> > :
> >
> > oPPT=CreateObject('Powerpoint.Application')
> > oPPT.Visible.T.
> > oPres=oPPT.Presentations.Open('Slides.ppt')
> > oPres.Slideshowsettings.Run
> >
> > but before it run the slideshow, the powerpoint window will flash out.
> > Does anyone know how to run the slide show without showing the
> > powerpoint window?
> >
> > I really hope experts out there can help me solve this problem.
> >
> > Thanks in advance.
> >