LabelTemplate Object (ActiveX/CAO)

Defines what fields from the database table are displayed in the label, and how the label text is formatted.

VBA class name: LabelTemplate

Create using: LabelTemplates.Add

Access via: LabelTemplates.Item

A label template can be updated only if there are no links associated with it.

Label templates have database properties and graphical properties. Database properties correspond to table column references. Graphical properties control the appearance of label text in the drawing area. To update data retrieved from a database, use the Reload method. To update label text, use the Refresh method.

To create a label template, use the Add method of the LinkTemplates collection. To edit or query a label template, use the following methods and properties:

Methods Properties Events

Hide

Refresh

Reload

Show

Catalog

Color

DataSource

DbConnect

DisplayableAttributes

Document

Format

LeaderAttachment

LeaderOffset

Linetype

Name

Rotation

Schema

Table

TextAttachment

TextHeight

TextStyle

TipOffset

None