Tahiti COM API
Tahiti exposes a COM automation interface. It can be used to control a running Tahiti, to start Tahiti, to work with domains and documents, and to connect Tahiti with other applications; the Microsoft Office add-ins use this API.
Any COM or .NET capable language can be used, for example Visual Basic Script, PowerShell, C# or C++. Examples in this documentation are written in Visual Basic Script.
Getting started
The entry point is the class LightComp.Tahiti (see Type library and classes),
which implements tcomIApplication. Creating the object connects to
the running Tahiti or starts it.
Set tahiti = CreateObject("LightComp.Tahiti")
version = tahiti.Version
MsgBox "Tahiti version: " & version
Domains are the connections to document stores; documents live inside a domain:
Set tahiti = CreateObject("LightComp.Tahiti")
For Each domain In tahiti.Domains
WScript.Echo domain.Name
Next
Object model
Object |
Role |
|---|---|
Main application object: version, domains, shared components, shared configuration, login dialog, message boxes. |
|
A domain is one connection to a document store (see Administration Guide). It gives access to its configuration, components, frames and documents. |
|
Documents of a domain and their pages; tcomIAttribute / tcomIAttributes hold document and page attributes. tcomIViewObject, tcomIViewObjectContainer and tcomIObjectView are the common base objects of documents, pages and their views. |
|
Domain and application components. Specialised components: tcomIDocumentManagerComponent (document repository), tcomIScannerComponent with tcomIScanJob (scanning), tcomIMailViewComponent (e-mail), tcomIDocumentIOComponent (import and export). |
|
Top-level window of a domain. |
|
Access to a Tahiti OLE package embedded in another document. |
|
Interfaces implemented by the Office add-ins and called by Tahiti. |
|
Event interfaces. Implement them in the client to be notified about domain state changes and about the result of sending a document. |
Collections (Domains, Documents, Pages, Attributes,
Components) provide Count, Item and an enumerator, so they can be
iterated with For Each.
Types
The reference uses the IDL type names. They map to the automation types as follows:
IDL |
VBScript / VBA |
.NET |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where a property is typed IDispatch, its description names the concrete
interface of the returned object.
Reference
The reference pages are generated from the comments in
Tahiti/TahitiCommon/TahitiAutomation.idl with tools/idl2rst.py in the
documentation repository. To update them, change the IDL comments and
regenerate; do not edit the generated files.