tcomIPackageOle Interface Reference

Tahiti OLE Package Interface. More...

List of all members.

Properties

IDispatch Document [get]
 OLE object.
BSTR Directory [get]
 Path to the directory.
tcomIViewObject Source [get]
 Source object.
tcomIDomain Domain [get]
 Return domain.


Detailed Description

Tahiti OLE Package Interface.

This interface is used in package processing. Object is available in the running script for package type=2. This interface is available as object package.

Example to display message box:

 set domain=package.domain
 domain.application.MsgBox domain.MainFrame, 0, "Call from script", "Source directory :"&package.directory

Property Documentation

BSTR Directory [get]

Path to the directory.

This is directory where is extracted package and all its files.

IDispatch Document [get]

OLE object.

This is running OLE object.

  • For Microsoft Word this object represents Document.
  • For Microsoft Excel this object represents Workbook.

tcomIDomain Domain [get]

Return domain.

Return values:
ppDomain Return domain. This object is type of tcomIDomain

tcomIViewObject Source [get]

Source object.

Object in the Tahiti which is parent of this package. This is usualy page or final item.

Example how to get attributes of parent object:

 set attributes=package.source.parent.attributes
 For Each attribute In attributes
 ....
 Next


Generated on Thu Aug 27 12:37:14 2009 for Tahiti COM API