View Full Version : Power Point (PPS) I need a help!
telan.dv
08-22-2008, 12:50 PM
I need to open a file PPS(powerpoint) with PowerPoint Viewer 2003 that executes direct of the CD. I already have PowerPoint Viwer 2003 working direct of the CD.
In the button that will call PPS the script of OnClick it is what I need to know to do.
Please help me with that script.
:huh
ShadowUK
08-22-2008, 02:26 PM
sFilename = "C:\\Presentationlol.pps";
File.Run("C:\\PPTView.exe", sFilename);
Does this work?
holtgrewe
08-22-2008, 02:27 PM
I'm easily confused - are you wanting to run the PowerPoint executable directly from the CD drive?
If so, this is probably not something that would be recommended due to potential copyright infringements.
Here's one way to handle the problem.
There is an AMS variable: "_MicrosoftPowerPointVer" that can be accessed by checking the appropriate dependancy box. If a viewer is not installed or not current, you could simply direct the user to download the viewer from MSN. Then everything is "above board" so to speak. The PPS viewer is free from microsoft.
I hope this helps and I'm not overstating the obvious...
edit: sorry ShadowMan - I stepped on you...
telan.dv
08-22-2008, 04:22 PM
Thank you very much for his help!
It worked like this:
sFilename = "AutoPlay\\Docs\\PPS1.pps";
File.Run("PowerPoint\\PPTVIEW.EXE", sFilename);
ShadowUK
08-22-2008, 04:30 PM
edit: sorry ShadowMan - I stepped on you...
Narr, Read post above. I helped fix this guys problem, You helped him detect viewers and stuff which is useful but he just wanted to open it.
In these such projects, i recommend converting pps to mhtml and then run that in a web object.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.