473,569 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1444
Thanks greatly appreciated

Mike

"vin" <vi*@discussion s.microsoft.com > wrote in message
news:53******** *************** ***********@mic rosoft.com...
Mike,

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

<SCRIPT language="VBScr ipt">
Dim objWord

Sub OpenDoc(strLoca tion)
Set objWord = CreateObject("W ord.Application ")
objWord.Documen ts.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$U A2.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
1661
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 " A run time error has occured. Do you wish to debug? Line :0 , Object Expected". I just know that it is a Java Script error. Any suggestions on...
26
15188
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 "locate.replace". I can do all this if the html page containing the script originates on the client machine, but don't know how to get access to a...
0
1041
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 document on the server computer and performs the tasks. I want to do the exact similar thing on the client side. In another word I want when the...
1
1968
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 document on the server computer and performs the tasks. I want to do the exact similar thing on the client side. In another word I want when the...
10
1250
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 get the application to become visible **********What am i doing wrong? is there something else that needs to be done to make the application...
5
3576
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 that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label...
0
5542
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
8
1802
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: http://www.aspnetpro.com/NewsletterArticle/2003/09/asp200309so_l/asp200309so_l.asp but to get it working I had to "Go to the Security tab, select Local intranet, and click on...
1
2035
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 requirement is say , I have my page of search results at {link removed by moderator} my site Appartment for Rent in Hyderabad. I would like to have the...
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7666
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
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 we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.