tcomIDocumentManagerComponent Interface Reference

Document Manager Component. More...

List of all members.

Public Member Functions

HRESULT CreateDocument ([in] BSTR documentType,[in] VARIANT_BOOL bEditAttributes,[out, retval] tcomIDocument **ppDocument)
 Create new document.

Properties

IDispatch Domain [get]
 Return domain.
IDispatch Documents [get]
 Return collection of documents.


Detailed Description

Document Manager Component.

Component manage all documents, trees as well as provides access to the document repository.

Component name is: DocumentManager Simple example to access Document Manager

 set tahiti=CreateObject("LightComp.Tahiti")
 set domain=tahiti.domains.item("test.ept")
 set component = domain.components.item("DocumentManager")
 set docManager = component.GetInterface()

Member Function Documentation

HRESULT CreateDocument ( [in] BSTR  documentType,
[in] VARIANT_BOOL  bEditAttributes,
[out, retval] tcomIDocument **  ppDocument 
)

Create new document.

Function will create new document. It is possible to specify document type or create document without document type. In this case will be displayed dialog to select document type.

Parameters:
documentType Type of new document. If this is empty string dialog to select document type will be displayed.
bEditAttributes TRUE if dialog for editing attributes should be displayed. FALSE if attributes should not be edited.
Return values:
ppDocument Return newly created document. Return error if creation failed. Return E_ABORTED (0x80004004L) if canceled.


Property Documentation

IDispatch Documents [get]

Return collection of documents.

It is possible to iterate over returned object. Returned object is tcomIDocuments.

Return values:
pDocuments Return collection of documents (tcomIDocuments)

IDispatch Domain [get]

Return domain.

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


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