Click or drag to resize

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
Syntax
IListTextItem Template { get; set; }

Property Value

Type: IListTextItem
IlistTextItem – a reference to the IListTextItem object
Examples

Template

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

VB
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