Chapter 1 -- 3
Discover ActiveX Automation for your labeling software
What is the type library?
The type library supplied by the labeling software is a file
(
Lppx2.tlb
) that describes the type of all the ActiveX objects.
The type library does not store objects, it stores type informa-
tion. By accessing the type library, your application can
determine the characteristics of an object, such as the interfaces
supported by the object and the names and parameters.
This library helps you to write your program because it contains
all the definitions of object methods and properties that you can
access. Using this library you optimize your job.
The name of this type library is
LabelManager2
with the
TK Labeling ActiveX 6.0
reference.
The procedures below show how to install and use the type
library with Visual Basic 6.0.
"
"
"
"
To install the type library
1
Choose
Project References
.
2
Activate
TK Labeling ActiveX 6.0
in the list of available ref-
erences then validate the dialog box.
"
"
"
"
To display the methods and properties
1
Use the
Object Explorer
by pressing the
F2
key.
2
In the library list, select
LabelManager2
.
"
"
"
"
To use the type library
S
While writing code, you have just to enter a period ”.” after
an object to get the associated methods and properties, or
after a method to get the associated properties.