ISProfile.LoadLetterTemplateCategories

Description

This function returns the letter template categories.

Syntax

object.LoadLetterTemplateCategories()

Part Attribute Type Description
object Required
The object always implements the ISProfile interface

Return Value

ISCollection

Returns the letter template categories.

Example

Display the number of the letter template categories and some information about them.

Dim aLetTempCategories
Dim aLetTempCategory
Dim i
Dim aMessage


Set aLetTempCategories = Profile.LoadLetterTemplateCategories
aMessage = vbNewLine & "Letter Template Categories Count = " &_
  aLetTempCategories.Count & vbNewLine
for i = 0 to aLetTempCategories.Count -1 
  set aLetTempCategory = aLetTempCategories.Item(i)

  aMessage = aMessage & vbNewLine &_
    "Category Name: " & aLetTempCategory.Name & vbNewLine &_
    "Category ID: " & aLetTempCategory.ID & vbNewLine &_
    "Category Parent ID: " & aLetTempCategory.ParentID & vbNewLine &_
    "Category Path : " & Replace(aLetTempCategory.Path, chr(10), "\") & vbNewLine
next 

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Letter Template Categories can be found in Maintain > Templates > Documents > Categories.

Version information

Added in v7.8.0