473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

help with Client side MS word

i have an asp.net application that works great

but i now need to create a word document and open it on the client side, so
that users can complete the missing data

ive looked into this and cannot find any tutorials that explain how to open
a word document client side (i managed to get it to open server side but
that is not what i want)

any help would be greatly appreciated

Thanks

Mike
Nov 18 '05 #1
2 1434
Thanks greatly appreciated

Mike

"vin" <vi*@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.com...
Mike,

to open a document on the client side use the following code.

<SCRIPT language="VBScript">
Dim objWord

Sub OpenDoc(strLocation)
Set objWord = CreateObject("Word.Application")
objWord.Documents.Open strLocation
objWord.Visible = true
set objWord=nothing
End Sub

This can be called from javascript or VBScript on client side. Make sure the client browser is set to prompt for initialize Active x controls.
</SCRIPT>

vin

"Mike Fellows" wrote:
i have an asp.net application that works great

but i now need to create a word document and open it on the client side, so that users can complete the missing data

ive looked into this and cannot find any tutorials that explain how to open a word document client side (i managed to get it to open server side but
that is not what i want)

any help would be greatly appreciated

Thanks

Mike

Nov 18 '05 #2
You cant use ASP.NET to do this, you can likely do some work with it via
vbscript once its delivered to the client but it will be very restricted.

Basically, once you have sent them the results of a query, in this case a
word doc, then the transaction with your web server is completed. If you
stream them a doc from server side then the client will open it if it knows
what to do with that document type, most browsers know what to do with a
word doc - but its no longer connected to your server in any way. Your
users would have to upload the doc to the server again with the changes
saved client side before you could work on it again.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Mike Fellows" <mi***************@equityhouse.co.uk> wrote in message
news:gEVDc.92$UA2.66@newsfe5-win...
i have an asp.net application that works great

but i now need to create a word document and open it on the client side, so that users can complete the missing data

ive looked into this and cannot find any tutorials that explain how to open a word document client side (i managed to get it to open server side but
that is not what i want)

any help would be greatly appreciated

Thanks

Mike

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: questionr | last post by:
There is a spell checker function which is written in VB Script. The function works well when tested seperately. But when the function is called from Java Script, the function shows an Error saying...
26
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via...
0
by: Farshad | last post by:
I am trying to automate a MS word document through a C#.NET web application. I could successfully do it on the server side. I mean when the client is running my C# application it opens the Word...
1
by: Farshad | last post by:
I am trying to automate a MS word document through a C#.NET web application. I could successfully do it on the server side. I mean when the client is running my C# application it opens the Word...
10
by: Elizabeth Harmon | last post by:
Hi All I am attempting to open a Word App from a web page on the client and so far everything works (After reconfig of dcomcnfg for Microsoft Word Document). I have one minor problem, i cannot...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
8
by: =?Utf-8?B?QmFkaXM=?= | last post by:
I have tried a server-side automation and it's giving me problems that I couldn't solve.. Now, I'm switching to client side automation and I was following this example:...
1
by: urstop | last post by:
I am trying to use word automation to generate word document with the results from the client side javascript. So is there any work around to disable the Active X warnign I get on the page? My...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.