| |
rockocubs
Posts: 65
Score: 0
Joined: 4/8/2005
From:
Status: offline
|
I am currently opening a word document with vbscript from within HTMl. It works great but it open's minamized at the bottom with the start button, you have to click on it down there for the user to bring it up, i would like it to open up active over the webbrowser. code: <script type="text/vbscript"> Sub OpenDoc(strLocation) Set objWord = CreateObject("Word.Application") objWord.Visible = true objWord.Documents.Open strLocation objWord.WindowState = wdWindowStateMaximize End Sub </script> <script language="JavaScript"> <!-- hide function openTemplate(documentName) { OpenDoc(documentName); } // done hiding --> </script> body <form> <input type="button" onClick="openTemplate ('K:\Mydocuments\hi.doc')" value="Open Word Document"> </form>
|
|