473,473 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Word Document Will Not Open Via Clients - HELP!

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
2 4721
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jason Steeves | last post by:
Can someone post the needed code that will allow me to launch word on the client PC and have the filename specified as a variable. I have been working on this and can't find any clear documentation...
4
by: Paolo | last post by:
Hello, I am trying to create a procedure to export my Access data to a word template. I would like to export data from two tables to a word file at the same time. My two tables are named CASES...
5
by: Niklas Uhlin | last post by:
Someone please explain why Session_Start fires multiple times / retains SessionID values between sessions, when you open an ASP.NET page from MS Word. For details of the problem, see below: 1....
0
by: nondisclosure007 | last post by:
I am actually trying to do this and found in this thread some very good information (begin quote): { In ASP.NET you should store and manipulate the word document on the server. You can...
4
by: Kash | last post by:
Hi everybody: I've developed a web application running on a 2003 server not on the web but on extranet environment of a small Firm (less than 10 users). I've taken benefit of Office Primary...
0
by: Niyazi | last post by:
Hi, I created application that store the data in SQL SERVER that reside on network. The client also use this application to access the resources provided with application. But is the client want...
5
by: jmar | last post by:
I posted a week ago and received one response. I'm looking for the opinion of several experienced .NET people before I proceed so I'm posting again. Sorry for the repost... I am updating a...
22
by: liya.tansky | last post by:
Hello, I'm developing an intranet (win XP, .NET 2, Visual Studio 2005, Microsoft.Office.Interop.Word.dll in references) and needed to implement find-replace in word doc before sending letter and...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.