faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

79 of 120 people (66%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How can open a WinWord(as a new Window) in a program using JavaScript

Apr 4th, 2008 19:45
ha mo, Iván Rivera, Shanmuganathan Sivaraj,


Here is a simple solution, only for IE (it uses ActiveX objects, and
gives a security alert with normal preferences set):
var wordDoc=new ActiveXObject('Word.Document'); 
// creates a new ActiveX object
wordDoc.Application.Visible=true;
// displays the application (Word) with the (empty) document loaded
// ...
// Do here whatever you like
// ...
wordDoc=null;  // dispose of the reference
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com