Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open MSWord document

Status
Not open for further replies.

staleb

Programmer
Feb 7, 2005
45
NO
Hi
I dont now if this is the right forum to ask this question, but here I go.

I want to open a MSWord document on the clients PC/MSWord, the solution I use now is this:
<script language=vbscript runat=Server>
<!--
sub OpenDoc(strLocation)
set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
end sub

//-->
</script>

the document is located on a file server, which accesed thrugh a Virtual Directory (IIS 5.0) on the web-server
This solution works to some degree, but when the document is opened ists writeprotected (The VD has full read/write access)
This mean that I cant store any changes I make back to the document on the server.

After intensive searching on Microsofts pages I foun theese to articles:

They sugest that I should use aboulut adressing: URL = So that I trigger a service MSDAIPP

sub OpenWord(strLocation)
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "FP662.DOC", "URL = end sub

I cant seem to get this working.
Has anyone used this, or does anyone have a soultion??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top