473,385 Members | 1,606 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,385 software developers and data experts.

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 4892
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.com> wrote in message
news:e9**************@tk2msftngp13.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.netNoSpamM> wrote
in message news:OQ**************@TK2MSFTNGP12.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.com> wrote in message
news:e9**************@tk2msftngp13.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.netNoSpamM> wrote
in message news:OQ**************@TK2MSFTNGP12.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.com> wrote in message
news:e9**************@tk2msftngp13.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
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. ...
3
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...
8
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 =...
10
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 =...
4
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...
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...
6
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. ...
0
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 =...
7
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();...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.