Solved

Populate a Word document using JavaScript

Posted on 2008-10-10
2
342 Views
Last Modified: 2012-08-14
There was an earlier posting that was designed around Cold Fusion. Not helpful for me. Need to know how to add text and tables to a created Word Doc from JavaScript, including adding values to the tables. Thanks.
0
Comment
Question by:HarleyInDTX
2 Comments
 
LVL 3

Assisted Solution

by:mitb
mitb earned 50 total points
ID: 22691853
Take a look at the following samples
http://www.microsoft.com/technet/scriptcenter/scripts/office/word/ofwdvb07.mspx
http://www.microsoft.com/technet/scriptcenter/scripts/office/word/default.mspx?mfr=true

This  samples are in VBscript but they can be easily translated into the Jscript.
You may use free online VBscript to Jscript converter found at
 http://slingfive.com/pages/code/scriptConverter/
0
 

Accepted Solution

by:
HarleyInDTX earned 0 total points
ID: 22699735
Thanks for the input.  The reference did help provide the key, but as you said, I did have to work through the get the proper solution. The link to the scriptConverter did help some but it didn't do much converting of the VB. What did suprise me is that a common "For" statement wasn't converted at all. Just my thoughts.  Don't misunderstand, the mentioned links are great resources.  
Your great, mitb. Thanks again.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you ever need to create a 20 page Word document for some testing purpose? Are you tired of copying & pasting old boring "lorem ipsum" text over and over again, increasing font size and line space in order to make the document 20+ pages long? Look…
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now