Open Word w/doc from Jscript 
Author Message
 Open Word w/doc from Jscript

I'm developing a web application on an intranet. After a user fills out a
form for a request I need the user to complete a word document to be sent
for approval.  Company standard approval process.
Is there any way to open up MS Word via Jscript on the click of a button?
A code example would be great.
I don't want to bring up MS Word in IE browser. I want to start MS Word.
Any help is greatly appreciated.
Tom


Mon, 30 Jul 2001 03:00:00 GMT  
 Open Word w/doc from Jscript
Thomas,

To start Microsoft Word and have it open a Word document,
you simply call window.open:

      window.open("http://myserver/mydoc.doc", "wordWindow");

Richard

Quote:

> I'm developing a web application on an intranet. After a user fills out a
> form for a request I need the user to complete a word document to be sent
> for approval.  Company standard approval process.
> Is there any way to open up MS Word via Jscript on the click of a button?
> A code example would be great.
> I don't want to bring up MS Word in IE browser. I want to start MS Word.
> Any help is greatly appreciated.
> Tom



Thu, 02 Aug 2001 03:00:00 GMT  
 Open Word w/doc from Jscript
Hi Thomas,

I am also working on a similar assignment , not on WORD but EXCEL.
If you were to able to WORD on Client machine, form browser, could u tell me
how did u achieve that?
Did u have to install related MS Office product on client machine?
If I do not want to install them on client machine, how should I open EXCEL
in separate window other than browser by a click on browser.

ur help would be greatly appreciated.
Thanx.
Harshal

Quote:

> I'm developing a web application on an intranet. After a user fills out a
> form for a request I need the user to complete a word document to be sent
> for approval.  Company standard approval process.
> Is there any way to open up MS Word via Jscript on the click of a button?
> A code example would be great.
> I don't want to bring up MS Word in IE browser. I want to start MS Word.
> Any help is greatly appreciated.
> Tom



Fri, 10 Aug 2001 03:00:00 GMT  
 Open Word w/doc from Jscript
Harshal:

In order to use Excel or Word, it must be installed (or available) to the
client machine.  File extensions must be associated properly.  Once those
parameters are met, opening a document using:

window.open("http://server/directory/spreadsheet.xls") will open a new
instance of the browser with a fully editable spreadsheet loaded.  I have
also done this successfully using window.open("c:/temp/spreadsheet.xls)
where c:\temp is the actual directory of the file.  I do not know, however,
whether this method would be successful with network drives.

HTH,

Tom (:-}



Sat, 11 Aug 2001 03:00:00 GMT  
 Open Word w/doc from Jscript
On Mon, 22 Feb 1999 15:51:25 -0500, Rahul Maheshwari

Quote:

>Hi Thomas,

>I am also working on a similar assignment , not on WORD but EXCEL.
>If you were to able to WORD on Client machine, form browser, could u tell me
>how did u achieve that?
>Did u have to install related MS Office product on client machine?
>If I do not want to install them on client machine, how should I open EXCEL
>in separate window other than browser by a click on browser.

>ur help would be greatly appreciated.
>Thanx.
>Harshal


>> I'm developing a web application on an intranet. After a user fills out a
>> form for a request I need the user to complete a word document to be sent
>> for approval.  Company standard approval process.
>> Is there any way to open up MS Word via Jscript on the click of a button?
>> A code example would be great.
>> I don't want to bring up MS Word in IE browser. I want to start MS Word.
>> Any help is greatly appreciated.
>> Tom

Use the API call ShellExecute(). (You'll require platform-native Java
to do this.)   Provided the end user has an application that claims
the extention .doc or .xls, it will open automatically.

--Jekke
===
If you're having trouble getting Option Explicit, it's
because we're moving to a new provider.  Please try
back at http://www.optionexplicit.com



Sun, 12 Aug 2001 03:00:00 GMT  
 Open Word w/doc from Jscript
Elocutus,

Sounds like exactly what I'm looking for. However, I'm not a JavaScript
expert and don't understand what you mean by "platform-native" Java, though
I can guess.

Do you have any actual examples of this?

Any assistance gratefully received.

Best regards,

Mark Rae


Quote:
>On Mon, 22 Feb 1999 15:51:25 -0500, Rahul Maheshwari

>Use the API call ShellExecute(). (You'll require platform-native Java
>to do this.)   Provided the end user has an application that claims
>the extention .doc or .xls, it will open automatically.

>--Jekke
>===
>If you're having trouble getting Option Explicit, it's
>because we're moving to a new provider.  Please try
>back at http://www.optionexplicit.com



Mon, 13 Aug 2001 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Opening Word Doc inside IE frame

2. open doc/excel file in frame with Word/Excel menubar

3. Opening Word Doc inside an IE frame

4. Opening Word Doc

5. Opening a word doc in part of an html page

6. How to open Word doc in ASP Page?

7. Script to open a new Word doc based on a template

8. Open a word doc in read-only in browser

9. Open DOC without Word Installed?

10. Word doc opened from Outlook

11. Open a Word doc in another window

12. find/replace in a Word Doc using word object and vbscript

 

 
Powered by phpBB® Forum Software