EasyManua.ls Logo

Teklynx Discover ActiveX - Application Object; Document Object; Collection Object

Teklynx Discover ActiveX
165 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 1 -- 9
Discover ActiveX Automation for your labeling software
Dim MyApp As LabelManager2.Application
...
With MyApp
.ActiveDocument
.Print
end With
The properties and methods that can be used without the
Application object are called “global.
S To display the global properties and methods in the object
explorer (
F2 key), click on global at the beginning of the list
displayed in the Classes zone.
The Document object represents an open document. Each open
document in the labeling software is represented by a Docu-
ment object. This object has members (properties, methods,
and events) that you can use to manipulate the document.
You can access the current document if there is an open
document by using the ActiveDocument property of the
Application object.
All open documents that belong to the documents collection are
represented by the Documents object. You can find a particular
document by moving through this collection.
A Collection object is an ordered set of items that can be
referred to a unit.
Note
The Collection object provides a convenient way to refer to a
related group of items as a single object. The items, or mem-
bers, in a collection need only be related by the fact that they
exist in the collection. Members or items of a collection don’t
have to share the same data type (see Chapte r 1 - 8).
A collection can be created the same way other objects are
created. For example:
Dim X As New Collection
Once a collection is created, members can be added using the
Add method and removed using the Remove method. Specific
members ca n be returned from the collection u sing the Item
method, while the entire collection can be returned using the For
Each...Next statement.
Document
Object
Collection
Object

Table of Contents