Starting winword.exe

  • Thread starter Thread starter Richard Loupatty
  • Start date Start date
R

Richard Loupatty

I tried to start winword.exe from an aspx (after granting things with
dcomcnfg)
and i can see winword.exe showing up in the taskmanager,
but i don't see the word-application itself.

I did set the visibility, true.

Hope someone can help me.

Richard Loupatty
 
Why are you trying to start Word on the server? I imagine there will not
usually be anyone sitting there to see Word appear anyway.
The problem is that your process does not have access to the desktop.

You might try this: go into control panel, administrative tools, services.
Find all the WWW related services and, in their properties, check the
checkbox that says "Allow Service to Interact with Desktop"
 
Simply redirecting to the doc file should launch word in the browser.

However, if you want to launch word directly as an application, you will
have to use script.
There are possible security issues doing this, but the following script
should work (at least in IE). This script should open any document in its
associated application, just set the onclick event to call the following
script:

<script language="vbscript">
Function OpenAppFile(cFileName)
Dim oWScript
set oWScript = createobject("WScript.shell")
oWScript.run(cFileName)
oWScript=Null
END Function
</script>

PS: If someone could translate this into javascript, please send that to
me.

Troy
 
Back
Top