Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Populate a Word document using JavaScript

Posted on 2008-10-10
2
Medium Priority
?
355 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.

670 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