Solved

Populate a Word document using JavaScript

Posted on 2008-10-10
2
347 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Nice table. Huge mess. Maybe this was something you created way back before you figured out tabs or a document you received from someone else. Either way, using the spacebar to separate the columns resulted in a mess. Trying to convert text to 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…
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 …
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …
Suggested Courses

738 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