[thelist] Opening MS word document by Javascript . Gettingerror:Automation server can not create object

A Maynes andrew at milords.com
Wed Dec 7 07:59:47 CST 2005

I think it is only a matter of time before all responses to this email
forum (and others) will be replaced with an automated link to google
with suggested key word searches!


-----Original Message-----
From: Chris at globet.com [mailto:Chris at globet.com] 
Sent: 07 December 2005 13:52
To: thelist at lists.evolt.org
Subject: Re: [thelist] Opening MS word document by Javascript .
Gettingerror:Automation server can not create object


>   I'm trying to open MS word document by Javascript using IE
> browser . 
>   The code segment 
>     var objWord = new ActiveXObject("Word.Application");
>   var Doc=new ActiveXObject("Word.Document");
>   Doc.Visible = true;
>   Doc=WApp.Documents.Add("c:\\SFDemoSpec&Doc\\test.dot", true);
>   This is giving me
>   Automation server can not create object at line no 1 as well as 2 .
>   Can u pls help me in this regards ...how to do it  ? ..

Googling for "javascript open word document" yielded the following link.


I used the following code (from the link above), which opened up an
instance of MS Word with a blank document:

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

This should give you a good starting point.


Chris Marsh
Web Developer
Tel: +44 20 8246 4804 Ext 828
Fax: +44 20 8246 4808

Any opinions expressed in this email are those of the individual and not
necessarily the Company. This message is intended for the use of the
individual or entity to which it is addressed and may contain
information that is confidential and privileged and exempt from
disclosure under applicable law. If the reader of this message is not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please contact the
sender immediately and delete it from your system. 

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

More information about the thelist mailing list