Re: Creating tables alternating with text in Word using JScript
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Thu, 16 Oct 2008 12:27:00 -0400
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"
.
- References:
- Creating tables alternating with text in Word using JScript
- From: HarleyDTX
- Creating tables alternating with text in Word using JScript
- Prev by Date: Re: Creating tables alternating with text in Word using JScript
- Next by Date: Cannot use href="javascript:a_function()"
- Previous by thread: Re: Creating tables alternating with text in Word using JScript
- Next by thread: How to trace elements' css style.
- Index(es):
Relevant Pages
|