From: wassens@my-deja.com
Newsgroups: comp.databases.oracle.tools
Subject: accessing WORD collections with OLE2 package
Date: Tue, 10 Oct 2000 09:29:53 GMT
Organization: Deja.com - Before you buy.
Lines: 21
Message-ID: <8runid$mar$1@nnrp1.deja.com>
NNTP-Posting-Host: 145.12.10.1
X-Article-Creation-Date: Tue Oct 10 09:29:53 2000 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)
X-Http-Proxy: 1.0 x54.deja.com:80 (Squid/1.1.22) for client 145.12.10.1
X-MyDeja-Info: XMYDJUIDwassens


I'm trying to accces an object in a word collection;
Wordapp.ACtiveDocument.VBProject.VBComponents.Item(1)

I tried the following:

ole2.add_arg (arglist, 1);
item := ole2.get_obj_property(VBComponentsobj, 'item',arglist);
and
item := ole2.get_obj_property(VBComponentsobj, 'item(1)' );
and
item := ole2.get_obj_property(VBComponentsobj, 'item[1]' );

this doesn't work.

any suggestions ?

Frank.


Sent via Deja.com http://www.deja.com/
Before you buy.

