[Javascript] Set objWord = CreateObject("Word.Application") CAN i do this i n javascript???

Peter Brunone peter at brunone.com
Thu Jun 20 12:07:23 CDT 2002


	I don't know if the JavaScript engine has the same access as the VBScript
engine, but you can try.  Other than that, if the permissions are there for
the browser (locally, or low-security mode remotely), then you should be
fine.

-Peter

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of Scott.Wiseman
|
|this works locally :-)
|but not on the server
|
|can I do this with javascript and run it locally???
|
|<HTML>
|   <HEAD>
|   <SCRIPT LANGUAGE=VBScript>
|   Dim objWord
|   Sub Btn1_onclick()
|   call OpenDoc("http://database/testing/Faxing/FaxOfficeMerge.doc")
|   End Sub
|
|   Sub OpenDoc(strLocation)
|
|   Set objWord = CreateObject("Word.Application")
|   objWord.Visible = true
|   objWord.Documents.Open strLocation
|   End Sub
|
|   </SCRIPT>
|   <TITLE>Launch Word</Title>
|   </HEAD>
|   <BODY>
|   <INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Word Doc">
|   <p>
|   </BODY>
|   </HTML>
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|https://lists.LaTech.edu/mailman/listinfo/javascript
|




More information about the Javascript mailing list