473,775 Members | 2,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open Word from ASP

I have a Word doc already created that I want to open from an asp page. I
want it to open in Word and allow the user to modify if necessary. I
currently have it opening (using href), but it is opening in IE. I think I
should be able to do it with javascript to open word and then call that
function on the link to the doc. Can someone give me some pointers?

Thanks in advance.
Jul 19 '05 #1
3 4920
Internet Explorer is simply a shell. When you open a document in IE, you are
actually editing with the same DLLs that word uses. The control of opening
the document in Word, instead of IE, is a client side setting. You can get
your machine to work this way, but that does not mean everyone else will
work the same way.

I would imagine you could use JavaScript to open the document in word, on
the client, bypassing the client choices. This is not wise, however, as it
is potentially buggy. In addition, it may go counter to the wishes of the
user.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ***
Think Outside the Box!
*************** *************** *************** ***
"TLMM" <tl**@wwwnews.c om> wrote in message
news:e9******** ******@tk2msftn gp13.phx.gbl...
I have a Word doc already created that I want to open from an asp page. I
want it to open in Word and allow the user to modify if necessary. I
currently have it opening (using href), but it is opening in IE. I think I
should be able to do it with javascript to open word and then call that
function on the link to the doc. Can someone give me some pointers?

Thanks in advance.

Jul 19 '05 #2
I noticed that when I open the doc and it opens in IE, that I can edit the
text that is visible. The Word doc that I want to open a labels doc which
the user will open and print labels for all contacts in the database from a
mail merge. This works fine and when testing I can edit the text that is
visible, i.e. the first page. I don't know how I would be able to edit any
other pages b/c I can't get the mail merge toolbar to appear and thus be
able to scroll through the records. Is there a way to accomplish this?
Maybe someone has another method of doing this than what I am currently
doing.

<a href="documents/LabelsAll.doc"> &nbsp; All Members</a>

I thought I might be able to open Word, then have this document open in Word
like would happen when you open a Word doc from explorer.

Thanks.

"Cowboy (Gregory A. Beamer) [MVP]" <No************ @comcast.netNoS pamM> wrote
in message news:OQ******** ******@TK2MSFTN GP12.phx.gbl...
Internet Explorer is simply a shell. When you open a document in IE, you are actually editing with the same DLLs that word uses. The control of opening
the document in Word, instead of IE, is a client side setting. You can get
your machine to work this way, but that does not mean everyone else will
work the same way.

I would imagine you could use JavaScript to open the document in word, on
the client, bypassing the client choices. This is not wise, however, as it
is potentially buggy. In addition, it may go counter to the wishes of the
user.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ***
Think Outside the Box!
*************** *************** *************** ***
"TLMM" <tl**@wwwnews.c om> wrote in message
news:e9******** ******@tk2msftn gp13.phx.gbl...
I have a Word doc already created that I want to open from an asp page. I want it to open in Word and allow the user to modify if necessary. I
currently have it opening (using href), but it is opening in IE. I think I should be able to do it with javascript to open word and then call that
function on the link to the doc. Can someone give me some pointers?

Thanks in advance.


Jul 19 '05 #3
Well at this point what you want to do is client side. I'd suggest
posting in the JScript newsgroup as that would be more along the lines
of what you are looking for.

TLMM wrote:
I noticed that when I open the doc and it opens in IE, that I can edit the
text that is visible. The Word doc that I want to open a labels doc which
the user will open and print labels for all contacts in the database from a
mail merge. This works fine and when testing I can edit the text that is
visible, i.e. the first page. I don't know how I would be able to edit any
other pages b/c I can't get the mail merge toolbar to appear and thus be
able to scroll through the records. Is there a way to accomplish this?
Maybe someone has another method of doing this than what I am currently
doing.

<a href="documents/LabelsAll.doc"> &nbsp; All Members</a>

I thought I might be able to open Word, then have this document open in Word
like would happen when you open a Word doc from explorer.

Thanks.

"Cowboy (Gregory A. Beamer) [MVP]" <No************ @comcast.netNoS pamM> wrote
in message news:OQ******** ******@TK2MSFTN GP12.phx.gbl...
Internet Explorer is simply a shell. When you open a document in IE, you


are
actually editing with the same DLLs that word uses. The control of opening
the document in Word, instead of IE, is a client side setting. You can get
your machine to work this way, but that does not mean everyone else will
work the same way.

I would imagine you could use JavaScript to open the document in word, on
the client, bypassing the client choices. This is not wise, however, as it
is potentially buggy. In addition, it may go counter to the wishes of the
user.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************* *************** *************** *****
Think Outside the Box!
************* *************** *************** *****
"TLMM" <tl**@wwwnews.c om> wrote in message
news:e9****** ********@tk2msf tngp13.phx.gbl. ..
I have a Word doc already created that I want to open from an asp page.
I
want it to open in Word and allow the user to modify if necessary. I
currently have it opening (using href), but it is opening in IE. I think
I
should be able to do it with javascript to open word and then call that
function on the link to the doc. Can someone give me some pointers?

Thanks in advance.




Jul 19 '05 #4

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

Similar topics

2
4529
by: Martin Lucas-Smith | last post by:
I am trying to use PHP's COM support to open a URL from within MS Word then save the document. I am using PHP5.0.3/Apache2/WindowsXP. phpinfo() confirms that COM support is enabled. Manually, this would be: - Start MS Word (am using Office 2003)
3
5813
by: Andy Davis | last post by:
How do i or can I open a word document directly from Access? I would like to be able for the user to click a button on my form to open a word document and then also run a macro in Word. Thanks in advance
8
3181
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName = "C:\\test.doc"; object readOnly = false;
10
2645
by: Åženol Akbulak | last post by:
Hi, I have a form page to print on my web application(asp.net). I want to show the page in WORD. I use that code in asp.net Page_Load event: Response.Clear(); Response.ContentType = "application/ms-word"; Response.AddHeader("Content-Disposition", "attachment;filename=word.doc"); When I open the page in IE shows a dialog to ask whether I want to open or save. It is ok. But when I click Open or Save button, I get an error message:
4
18643
by: Fabian | last post by:
Hello, I want to open a Word Document in my C# Programm. I tried this : Word.Application wordapp = new Word.Application(); object path = "TEST.DOC"; object vk_read_only = false; object vk_visible = true; object vk_false = false; object vk_true = true;
0
3231
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 to register new customer or companies they will enter the information in Windows Form and the program automaticaly creates the WORD document under specific folder under application path. Once the empty word file created than ask user if they want...
6
2659
by: Bob Alston | last post by:
Looking for someone with experience building apps with multiple instances of forms open. I am building an app for a nonprofit organizations case workers. They provide services to the elderly. so far I have built a traditional app, switchboard, forms, etc. Part of this app is to automate the forms they previously prepared manually. After the app was built and works just fine, I find out there are several case managers using MS word...
0
2545
by: RKovach | last post by:
I am automating Word and getting the existing instance if available using the following: Word.Application oWord = null; Word.Document oDoc = null; object oMissing = System.Reflection.Missing.Value; object sFN = @"C:\Test\TestDoc.doc"; try {
7
4018
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
0
9622
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10268
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10048
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9916
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7464
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4017
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
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2853
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.