Solved

Populate a Word document using JavaScript

Posted on 2008-10-10
2
341 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Authors who set out to write any sort of lengthy piece for online submission—be it a long question or comment on a technical form, an article, or a substantial blog entry—often find it useful to work up a draft in an editor other t…
Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

771 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

15 Experts available now in Live!

Get 1:1 Help Now