By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,856 Members | 1,986 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,856 IT Pros & Developers. It's quick & easy.

Word Document Will Not Open Via Clients - HELP!

P: n/a
Ok, this code works fine on the Web server machine. But when I try to run it
via any other clients on the LAN, I keep getting scripting errors (the MS
Word Document never opens.) Do I have to configure the server somehow to
allow it to share this MS Word doc?

<SCRIPT LANGUAGE=VBScript>
Dim objWord
Sub Btn1_onclick()
call
OpenDoc("http://WEBSERVER/ClerkOfCourt/CourtLetters/TestTemplate.doc")
End Sub

Sub OpenDoc(strLocation)

Set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
End Sub
</SCRIPT>
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Yeah, but I need the .doc to open in it's own instance of the MS Word
Application. If I open it within the IE Browser - the user cannot make any
changes to it (save) etc.

Hmm...

Any suggestions?

"Henke" <fu***********@hetmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
This is a security issue. You canīt start an Win32 application
from a Vbscript in the browser without lowering the security.

I would rather load the document in a iframe or frame from the
webserver

Regards,

// Henke

"Todd" <ts****@smithdata.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Ok, this code works fine on the Web server machine. But when I try to run
it
via any other clients on the LAN, I keep getting scripting errors (the

MS Word Document never opens.) Do I have to configure the server somehow to
allow it to share this MS Word doc?

<SCRIPT LANGUAGE=VBScript>
Dim objWord
Sub Btn1_onclick()
call
OpenDoc("http://WEBSERVER/ClerkOfCourt/CourtLetters/TestTemplate.doc")
End Sub

Sub OpenDoc(strLocation)

Set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
End Sub
</SCRIPT>


Nov 17 '05 #2

P: n/a
You don't have any option. The only thing you can do is to allow the user to
save the document and create a upload function if you want to save it to
server.

"Todd" <ts****@smithdata.net> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
Yeah, but I need the .doc to open in it's own instance of the MS Word
Application. If I open it within the IE Browser - the user cannot make any
changes to it (save) etc.

Hmm...

Any suggestions?

"Henke" <fu***********@hetmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
This is a security issue. You canīt start an Win32 application
from a Vbscript in the browser without lowering the security.

I would rather load the document in a iframe or frame from the
webserver

Regards,

// Henke

"Todd" <ts****@smithdata.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Ok, this code works fine on the Web server machine. But when I try to run
it
via any other clients on the LAN, I keep getting scripting errors (the

MS Word Document never opens.) Do I have to configure the server somehow to allow it to share this MS Word doc?

<SCRIPT LANGUAGE=VBScript>
Dim objWord
Sub Btn1_onclick()
call
OpenDoc("http://WEBSERVER/ClerkOfCourt/CourtLetters/TestTemplate.doc")
End Sub

Sub OpenDoc(strLocation)

Set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
End Sub
</SCRIPT>



Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.