Issue opening local pps/ppt/pptx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jose Angel
    New Member
    • Aug 2010
    • 1

    Issue opening local pps/ppt/pptx

    Hello all.

    I'm having some issues while invoking power point from the web. I try to open a power point file or presentation using the following code and my iexplorer6 browser hangs up and goes on a strike. No need to say that the powerpoint program doesn't even execute.
    I created a simple power point on root C:/ drive. I created a link to be able to use the startPowerpoint function on click. Everything I try doesn't even open the application. To be honest, something which seems pretty straight forward is not working for me. I tried with excel and word and things work fine but not for power point. Any ideas?
    Code:
    <html>
    <li id="toplevel"><a href="javascript: startPowerpoint()" style="cursor: pointer;">Go 
    
    to Presentation</a></li>
    
    <script language="JavaScript">
    function startPowerpoint()
    {
    var myApp = new ActiveXObject("PowerPoint.Application");
    var path="C:/ha.ppt";
    if (myApp != null)
    {
    myApp.Visible = true;
    myApp.Presentations.Open(path);
    }
    }
    </script>
    </html>
Working...