[Javascript] Creating Word Document with JavaScript

Scott Glasgow paladin at fuse.net
Sat Oct 22 18:18:22 CDT 2005


Del Wegener wrote:
> Good Morning;
>
> I have developed a simple flat file database consisting of JS Include
> files containing mathematics definitions, formulas, properties, etc.
> I have also written several little JS programs which place identified
> database items on a web page or on interactive flashcards.  For
> example the function call  myPut('Definition',def_null_set) returns
> the word Definition followed by the database item named def_null_set
> all properly formatted.
> See
> http://www.drdelmath.com/jeffco_intermediate_algebra/chapter_summaries/jeffco_intermediate_algebra_chapter1_summary.htm
>
> I would like to write similar JS programs which would create entries
> in an MS Word document instead of web pages.  Ideally the program
> would request a list of items to be included and would create a Word
> document containing those items.
>
> Is this possible ?  Can anyone point me to a source where I might
> learn how to do this ?
>
> Right now I do not have time to do all of this with a real database.
>
> Thanks for any pointers.
>
> Del
<<::SNIP::>>

Del, I could be mistaken, but I think you're out of luck with javascript. 
Although it is quite easy to use Word as a COM (automation) server from a 
fully-fledged language such as C++, VB, or Delphi, AFAIK javascript does not 
have the capability to act as a COM client. Since it is cross-platform, and 
never intended for such use, I would be greatly surprised to learn that this 
capability exists.

Cheers,
Scott




More information about the Javascript mailing list