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. |
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()
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.
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. |
ppDocument | Return newly created document. Return error if creation failed. Return E_ABORTED (0x80004004L) if canceled. |
IDispatch Documents [get] |
Return collection of documents.
It is possible to iterate over returned object. Returned object is tcomIDocuments.
pDocuments | Return collection of documents (tcomIDocuments) |
IDispatch Domain [get] |