IDocumentTemplate Property |
Document Template
The template a document is based on is stored in the SO_arc\template folder on the server. This will return the name as displayed in the GUI, and not the physical document name, of the template the document object is based on
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxIListTextItem Template { get; set; }
Property Template As IListTextItem
Get
Set
Dim instance As IDocument
Dim value As IListTextItem
value = instance.Template
instance.Template = value
property IListTextItem^ Template {
IListTextItem^ get ();
void set (IListTextItem^ value);
}
Property Value
Type:
IListTextItemIlistTextItem – a reference to the IListTextItem object
ExamplesTemplate
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
This example return the text string from the IListTextItem object, to show the name of the template this document is created with
dim objso
set objso = CreateObject("superoffice.application")
If not (objSO is nothing) Then
msgbox "the current document searchname: " & objso.currentdocument.template.text, vbinformation + vbokonly, "supercom"
else
msgbox "unable to connect to database"
end if
set objso = nothing
See Also