Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

Populate a Word document using JavaScript

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
HarleyInDTX
Asked:
HarleyInDTX
2 Solutions
 
mitbCommented:
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
 
HarleyInDTXAuthor Commented:
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now