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?
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>