By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

How can I create and open a PowerPoint doc?

P: 1
I can't even get this to work!
Expand|Select|Wrap|Line Numbers
  1. <script language="javascript" type="text/javascript">
  2.     function OpenPPT()
  3.     {
  4.         var objPPT;
  5.         objPPT = new ActiveXObject("PowerPoint.Application");
  6.         objPPT.Visible = true;
  7.         objPPT.Presentations.Open("C:\Users\PDAdmin\Desktop\POWERPOINT_FORMATS\Templates\ClassicPhotoAlbum.ppt");
  8.     }
  9.     </script>
...yes there is a valid presentation at this path...no nothing happens at all.
Oct 25 '07 #1
Share this Question
Share on Google+
2 Replies


acoder
Expert Mod 15k+
P: 16,027
I'm assuming you are using IE.

You may need to change the type in the script tag, because ActiveX is not JavaScript. I think "text/jscript" might be fine. I'm not too sure about the actual syntax - I'd have to check that up.
Oct 26 '07 #2

P: 1
In line number 7 use "\\" instead of "\" then the ppt will be opened.
Nov 29 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.