Re: Creating tables alternating with text in Word using JScript

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



HarleyDTX wrote:
var objWord = new ActiveXObject("Word.Application");

This is the only line in all of your code that is specific to jscript. All
the methods provided by the Word.Application class can be called by any
application that can access a COM object's methods. JScript is one of them.
The Word.Application object does not expose any vb-specific or
jscript-specific methods.

Having said that, there are differences in datatypes from one language to
another, so you may need to do things with the data you are passing
to/receiving from the COM object to account for the programming language
differences

I don't do any Word document manipulation so I cannot analyze your code for
you. All I can say is that your code example should work the same whether it
is VB/VBA/vbscript/jscript. The only difference is the method for
instantiating the COM object.



--
Microsoft MVP - ASP/ASP.NET - 2004-2007
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


.



Relevant Pages

  • Re: Does getNamedItem method not work in earlier versions of IE?
    ... Harry Keck wrote: ... > I am using the attributes.getNamedItem method in my jscript for some ... This email account is my spam trap so I ...
    (microsoft.public.scripting.jscript)
  • Re: problem with creating "scriptlet.typelib" from jscript
    ... I have problem with creating "scriptlet.typelib" from jscript ... Automation server cant create object. ... This email account is my spam trap so I ...
    (microsoft.public.scripting.jscript)
  • Re: JS 1.7 support: Who has it, etc.?
    ... always part of the MSHTML DOM API. ... JScript 5.0, and the MSDN Library documentation clearly distinguishes ... it is useful for everyday programming as new *language features* ... No, I am talking about the *programming language*, JScript. ...
    (comp.lang.javascript)
  • Re: print - portrait or landscape
    ... really be using JScript. ... The programming language really does not ... public function get Landscape: Boolean; ... public function set Landscape(Boolean); ...
    (comp.lang.javascript)
  • Re: Alternative to FOR EACH
    ... Look documentation for your programming language or at least write what is ... JScript uses Enumerator object for this purpose ... > for VBScript, but also for another programming language. ... > Set colDrives = objFSO.Drives ...
    (microsoft.public.scripting.vbscript)