DXL Function Parameters - OleGet & OlePut

2,053 views
Skip to first unread message

Ian

unread,
Mar 20, 2006, 4:00:22 PM3/20/06
to Telelogic DOORS DXL
Hi,

There are a number of DXL functions with which DOORs can be used as an
Automation Client, ie, DOORs can be used to control other Window
applications that provide automation interface objects.

My specific need is to control MS WORD using DXL. There are a number of
functions in DXL which assist in this regard (See below).

DXL Function declarations

string oleGet (OleAutoOBj, autoObj, string propertyName, ........)
string olePut (OleAutoOBj, autoObj, string propertyName, ........)

The DXL Reference Manual unfortunately doesnt provide many examples of
the values that can be used for "propertyName" shown above with respect
to the MS WORD interface.

My query is does anyone have a list of the values that can be used for
"propertyName" for the above functions in regards to the MS WORD
interface.

Any guidance will be greatly appreciated,
Ian

Dave Knight

unread,
Mar 20, 2006, 5:56:35 PM3/20/06
to Telelogic...@googlegroups.com
Hi Ian, this was one of my biggest frustrations when writing automation scripts for word or excel in DXL...

The reason it isn't documented in the DXL manual is because the OLE methods and properties available are specific to each application.  So OLE for Microsoft Word 95 has different methods and properties available than for Microsoft Excel XP.

Your DOORS installation should have a file called ole.inc which has a bunch of common OLE definitions it uses.  You can include this file in your automation scripts and use the property and methods declared in it.  It is usually in a path such as: C:\Program Files\Doors\lib\dxl\utils

This won't really help you to figure out _how_ to use OLE but it is a starting point.  In my own experiences I generally had to piece together code from what other people had written and the built-in DOORS word export script.  You may also find some luck in searching the web for OLE or COM Word information.  Another strategy I've used to figure out the OLE properties for the action I want is to record macros in Word.  If you record a macro and then edit it to see the source code you can usually figure out the properties or methods you need to provide in the oleGet or olePut functions.

Dave

Raymond Durbin

unread,
Mar 21, 2006, 10:33:36 AM3/21/06
to davekn...@gmail.com, Telelogic...@googlegroups.com
 
This is intended to be a Visual Basic reference, but it has a pretty good list of the objects, methods, and parameters.  Be sure to view this page in Internet Exploder as it will not function entirely in any real browser;)  Good Luck.

>>> davekn...@gmail.com 3/20/2006 4:56 PM >>>
Reply all
Reply to author
Forward
0 new messages