Various properties on the object helps to perform operations on the template.
- Example:
-
The following example indicates how to retrieve the template.
Dim oTemplate As ENOIACD5Template Set oTemplate = oTemplates.Item(1)
- See also:
Properties
- Property TemplateName() As (Read Only)
-
Returns (gets) the name of the Template.
- Example:
-
The following example gets the name of the Template.
Dim oName As CATBSTR oName = oTemplate.TemplateName
- Property TemplateType() As (Read Only)
-
Returns (gets) the type of the Template.
- Example:
-
The following example gets the type of the Template.
Dim oType As CATBSTR oType = oTemplate.TemplateType
Methods
- Func DownloadFile( iTargetFolder) As
-
Downloads the template file to local disk.
- Parameters:
-
- iiTargetFolder
- The Folder Path on local disk where the template file will be downloaded. dd>
- Returns:
- Full path of the downloaded file. dd>
- Throws:
-
- -1782306828 : Template object is assigned more than one file.
- -1774688310 : Template object is not assigned any file.
- -1866082326 : File of same name as that of file assigned to Template object is present on download directory.
- Example:
-
The following example downloads the template file to local disk oTemplate:
- iTargetFolder : "E:\New folder".
Dim DownloadedFilePath As CATBSTR DownloadedFilePath = oTemplate.DownloadFile("E:\New folder")