PG LabelGallery Programming Guide Eng
PG LabelGallery Programming Guide Eng
Programming Guide
COPYRIGHTS
Rev: 20120308
Copyright © 2012 SATO CORPORATION. All rights reserved.
www.satoworldwide.com
Information in this document is subject to change without notice. The software described in
this document is furnished under a license agreement or nondisclosure agreement. The
software may be used or copied only in accordance with the terms of those agreements. No
part of the publication may be reproduced, stored in a retrieval system, or transmitted in any
form or any means electronically or mechanically, including photocopying and recording for
any purpose other than the purchaser's personal use without the written permission of SATO
CORPORATION. SATO assumes no responsibilities for any errors that may appear.
Trademarks
2.8 Label Gallery SDK version 3.2 Unit Based licensing ............................................. 14
2.8.1 Sofware key licensing ................................................................................................. 14
2.9 Label Gallery ActiveX common interfaces ............................................................. 17
2.9.1 Class Application ........................................................................................................ 17
2.9.2 Hierarchy diagram ...................................................................................................... 34
2.9.3 Class IBarcode (Advanced only) ................................................................................ 35
2.9.4 Class IDatabase (Advanced Only) ............................................................................. 49
2.9.5 Class IDatabaseList (Advanced Only) ....................................................................... 57
2.9.6 Class IDBDef .............................................................................................................. 58
2.9.7 Class IDBField ............................................................................................................ 60
2.9.8 Class IDBParameter (Advanced Only) ....................................................................... 62
2.9.9 Class IEXTFunction (Advanced Only) ........................................................................ 63
2.9.10 Class IFieldList (Advanced Only) ............................................................................... 67
2.9.11 Class IFunction (Advanced Only) ............................................................................... 68
2.9.12 Class IFunctionList (Advanced Only) ......................................................................... 71
2.9.13 Class IGraphics (Advanced Only) .............................................................................. 72
2.9.14 Class ILabel (Advanced Only) .................................................................................... 82
2.9.15 Class ILGLabel (Advanced Only) ............................................................................. 102
2.9.16 Class IObject (Advanced Only) ................................................................................ 124
2.9.17 Class IObjectList (Advanced Only)........................................................................... 133
2.9.18 Class IOleObject (Advanced Only)........................................................................... 134
2.9.19 Class IParagraph (Advanced Only) .......................................................................... 143
2.9.20 Class IParameterList (Advanced Only) .................................................................... 158
2.9.21 Class IRectangle (Advanced Only) .......................................................................... 159
2.9.22 Class IRTFText (Advanced Only) ............................................................................. 171
2.9.23 Class IText (Advanced Only) .................................................................................... 186
2.9.24 Class IVar (Advanced Only) ..................................................................................... 201
2.9.25 Class IVariableList (Advanced Only) ........................................................................ 219
2.9.26 Class ILabelSettings (Advanced Only) ..................................................................... 223
2.10 Label Gallery ActiveX interfaces for advanced users ......................................... 238
2.10.1 Class Application ...................................................................................................... 238
2.10.2 Class IDatabase ....................................................................................................... 241
2.10.3 Class IEXTFunction (Advanced Only) ...................................................................... 242
2.10.4 Class IFunction ......................................................................................................... 243
2.10.5 Class ILabel .............................................................................................................. 245
2.10.6 Class IParagraph ...................................................................................................... 246
2.10.7 Class IRTFText......................................................................................................... 247
2.10.8 Class IVar ................................................................................................................. 247
2.11 Nlog5 ActiveX Interfaces ........................................................................................ 248
2.11.1 How to use Nlog5 Interface ...................................................................................... 248
2.11.2 Class IPrintJobFactory ............................................................................................. 249
2.12 LabelServices ActiveX Interfaces .......................................................................... 250
2.12.1 Introduction to LabelServices Interface .................................................................... 250
2.12.2 Class TPQPrinter...................................................................................................... 250
2.12.3 Class TPQPrinterList ................................................................................................ 253
2.12.4 Class TPQPrinterJob ................................................................................................ 253
2.12.5 Class TPQPrinterJobList .......................................................................................... 257
2.12.6 Types ........................................................................................................................ 257
2.12.7 Methods .................................................................................................................... 259
2.13 GalleryForm ActiveX Interfaces ............................................................................. 269
2.13.1 Introduction ............................................................................................................... 269
2.13.2 GalleryForm ActiveX Interface - Design mode ......................................................... 269
2.13.3 GalleryForm ActiveX Interface - Run mode ............................................................. 271
3. DDE Communication ................................................................................ 273
3.1 Introduction.............................................................................................................. 273
5.2 How to close the label, if you do not have Label ID? .......................................... 289
5.3 How to print label, if you do not have Label ID? .................................................. 289
5.4 How to save the label with Label Gallery API? ..................................................... 290
5.5 How can I put Label Gallery in the foreground when I control
it with ActiveX interface? ........................................................................................ 290
5.6 How can I use Label Gallery API in .NET environment? ..................................... 290
5.8 Can I Control GalleryForm through the ActiveX Interface? ................................ 291
1. Introduction
Basically, the end user sees only your custom application that connects to Label
Gallery and uses Label Gallery label printing power in the background.
The purpose of this manual is to show you how you can control the Label Gallery
software from your own application that will be deployed to the end-user. Everything
you must know about integration of Label Gallery into your application is described
in this manual.
The information in this manual is for advanced users and application developers
only. If you do not plan to write applications that use integrated Label Gallery to print
labels, you can skip reading this manual entirely. If you are interested in Label
Gallery connectivity and integration options in general, please refer to the White
Paper covering these options or visit SATO Office website at
http://www.satoworldwide.com.
1
Introduction
All methods and properties of Label Gallery ActiveX object described in this
document are available in Label Gallery Plus application. Label Gallery Plus
application is available in many Label Gallery editions, like Label Gallery Plus, Label
Gallery Plus Print-Only, Label Gallery TruePro, Label Gallery TruePro Print-Only,
Label Gallery TruePro Network, Label Gallery SDK and other.
Label Gallery Easy and Label Gallery Free editions do not have the ActiveX
interface.
This manual contains a FAQ section where most frequently asked questions are
answered.
2
Introduction
Visual Basic
To install the type library:
Choose Project -> References.
Activate Label Gallery in the list of available
references and validate the dialog box.
3
Introduction
You can run Object Explorer anytime with pressing F2 button on your keyboard.
To use the type library
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.
Delphi
Choose Project -> Import Type Library
Activate Label Gallery in the list of available
references and validate the dialog box.
This produces the file lgplus3.OLB. You can view this file with the OLE/COM
Object Viewer.
OLE/COM Object Viewer is available to download from:
http://www.microsoft.com/com/resources/oleview.asp
4
Introduction
5
ActiveX interface
2. ActiveX interface
2.1 Introduction
ActiveX is a technology used within Windows that allows the programs to interact
with one another through a pre-defined interface. ActiveX was previously known as
OLE Automation and is still referred to as such in the documentation of many
programming languages that can make use of it.
An ActiveX interface is made up of 'exposed objects and methods'. The objects can
be looked upon as the containers for the methods that provide the interface
functionality. The methods perform specific tasks using parameters you pass to the
method to specify the detail of the task.
ActiveX interface available in Label Gallery software allows you to take remote
control over label printing. You can embed the functionality of Label Gallery Plus
into your application and use Label Gallery as print engine.
Before you start developing your custom application you should know, how to use
LabelGallery ActiveX interface in your software.
Printed
labels
Your Application
Database
Active X Interface
Label production
LabelGallery
Not Visible to the End User
Figure 1: Schematic view on communication paths when using Label Gallery ActiveX interface
6
ActiveX interface
The advanced connection to the label must be done with the LabelOpenEx
command. When accessing Label Gallery with LabelOpenEx command then you get
the interface to the label. Label interface can be used to access all available Label
Gallery ActiveX interfaces and their properties and/or methods described in this
manual
Please refer to the figure 2 for the hierarchy of the interfaces.
IMPORTANT!
The commands LabelOpen and LabelOpenEx are not equivalents and must not be
mixed. Use only one method at a time. When using LabelOpen, you interact with
the label using label ID, when using LabelOpenEx, you interact with the label base
on the label interface.
7
ActiveX interface
Late binding
Late binding uses the CreateObject command to create an instance of the Label
Gallery object that you then control from your application. For example, to create a
new instance of Label Gallery using late binding you would use the command:
Early binding
To use early binding, you must first set a reference to Label Gallery ActiveX
interface. The reference is stored in the type library file. For more information refer
to the chapter What is a Type Library?
If you need to integrate Label Gallery print engine to application running in .NET
environment, you will have to add Label Gallery Wrapper DLL to your development
environment in the same ways as the type library.
To create a new instance of Label Gallery using early binding use the command:
8
ActiveX interface
9
ActiveX interface
Visual Basic
You must include Label Gallery wrapper in your project:
Choose Project -> References.
10
ActiveX interface
Activate LabelGalleryPlus3WR
(LabelGalleryPlus2WR) in the list of available
references and validate the dialog box.
.After that you have the possibility to use Label Gallery ActiveX types (LGApp,
LGLabel, etc), methods and properties from your application. Early binding is also
available.
After that use of Label Gallery ActiveX types (LGApp, LGLabel, etc), methods and
properties is possible (early binding). After the certain object is no longer needed
you must use the proper “Free” method to ensure that no longer needed Label
Gallery objects are released correctly (otherwise garbage collector may not dispose
them immediately).
11
ActiveX interface
Visual Basic
You must include Label Gallery Engine wrapper in your project:
Choose Project -> References.
Activate LabelGalleryPlus3WR
(LabelGalleryPlus2WR) in the list of available
references and validate the dialog box.
After that you have the possibility to use GalleryEngine ActiveX types (LGApp,
LGLabel, etc), methods and properties from your application. Early binding is also
available.
12
ActiveX interface
13
ActiveX interface
If you want to log the information about every printed label, you just need to enable
the logging functionality.
For more information refer to the Label Gallery SDK User Guide.
SDKLicense.dll needs for Software key licensing. It is installed together with Label
Gallery SDK deployment package. Third party application can call this DLL to
achieve activation/deactivation of the SDK package.
The DLL is located in the location, where LGEngine is installed. This is normally on
C:\Program Files\Common Files\EuroPlus Shared\LGEngine
Function Version
Availability
SLInit 3.2
SLActivateLicense 3.2
SLDeactivateLicense 3.2
SLGetLicense 3.2
SLManageLicense 3.2
SLValidateKeyNumber 3.2
14
ActiveX interface
SLInit
Description:
Function must be called prior to all other functions. It sets the language of the
library, error messages will be returned in desired languages.
Return Value is 0.
Syntax:
Function SLInit (Language: integer) : integer
SLActivateLicense
Description:
Function will perform on-line activation of the key number provided in the
KeyNumber parameter. To perform the activation, Name, Company, Country and
Email parameters must be provided.
Reason parameter needs to be provided, if the key number is activated not for the
first time. See return codes for more explanation.
In case of an error, the buffer provided by ErrorMessage parameter is filled with the
message, up to MaxMsgLen length.
15
ActiveX interface
Syntax:
Function SLActivateLicense (Name, Company, Country, EMail,
Reason, KeyNumber: PChar; ErrorMessage: PChar; MaxMsgLen:
integer) : integer
SLDeactivateLicense
Description:
Function will perform on-line deactivation of the key number provided in the
KeyNumber parameter.
In case of an error, the buffer provided by ErrorMessage parameter is filled with the
message, up to MaxMsgLen length.
Syntax:
Function SLDeactivateLicense (KeyNumber: PChar; ErrorMessage:
PChar; MaxMsgLen: integer)
SLGetLicense
Description:
Function verifies the status of activation on the system. When the product is already
activated, the KeyNumber is returned in KeyNumber parameter (buffer of 26 or more
bytes needs to be provided.
When SolutionID parameter is provided, it will be filled with the SolutionID parameter
of the Key (refer to Label Gallery SDK User Guide for more information)
Return value:
0 – product is activated
-1 – product is not activated
Syntax:
16
ActiveX interface
SLManageLicense
Description:
Function is called to perform activation of the product (product is not activated yet)
or show the license information (when product is already activated).
Function will show the activation wizard, which will guide the user through the
process of license activation.
Return value:
0 – success
Syntax:
function SLManageLicense (hParent: THandle) : integer
SLValidateKeyNumber
Description:
Function verifies the key, provided in KeyNumber parameter.
Return value:
0 – Key is valid
-1 – Key is not valid.
Syntax:
Function SLValidateKeyNumber (KeyNumber: PChar) : integer
17
ActiveX interface
LabelCreate 1,2,3
LabelExportToPocket 1,2,3
LabelGeneralExport 1,2,3
LabelGetVarCount 1,2,3
LabelGetVarName 1,2,3
LabelGetVarProperty 1,2,3
LabelOpen 1,2,3
LabelOpenEx 1,2,3
LabelOpenExForPrinter 2,3
LabelOpenForPrinter 2,3
LabelPrint 1,2,3
LabelSessionEnd 1,2,3
LabelSessionPrint 1,2,3
LabelSessionStart 1,2,3
LabelSetPrinter 1,2,3
LabelSetPrintJobName 2,3
LabelSetVar 1,2,3
LabelTestConnection 1,2,3
Login 1,2,3
Quit 1,2,3
SetApplicationProperty 3
SetDefaultPrinter 2,3
Application
Description:
Application method returns an interface to the LGApp.
Syntax:
Property Application As LGLabel
Access Rights:
read-only
Method:
Advanced
18
ActiveX interface
DetailedMessage
Description:
This is a read-only property, which holds additional information (if they exist) about
the error (if it has occurred).
Syntax:
Property DetailedMessage As String
Access Rights:
read-only
Method:
Basic, Advanced
See also:
ErrorID, ErrorMessage
ErrorID
Description:
This is a read-only property that contains last error code (if error occurred).
Syntax:
Property ErrorID As Long
Access Rights:
read-only
Method:
Basic, Advanced
See also:
DetailedMessage, ErrorMessage
ErrorMessage
Description:
This is a read-only property that holds the last error message (if the error has
occurred).
Syntax:
Property ErrorMessage As String
19
ActiveX interface
Access Rights:
read-only
Method:
Basic, Advanced
See also:
DetailedMessage, ErrorID
ExecuteMacro
Description:
This function executes a Macro (DDE) command.
Syntax;
Function ExecuteMacro(LabelID As Long, Macro As String) As
Boolean
Method:
Basic
GetOpenedLabels
Description:
The LGApp interface is extended to support returning a list of opened labels. The
command is defined as:
Method returns a multiline text string, each line containing the path name of the
opened label. In case the label is not saved yet (path name does not exist), the title
of the label is returned.
Syntax:
GetOpenedLabels()
Method:
Advanced
See also:
LabelOpenEx
GetVersion
Description:
GetVersion method can be used to check Label Gallery version.
20
ActiveX interface
Syntax:
Function GetVersion(VersionID As Integer) As String
Method:
Advanced
GetLabelDownloadVariablesList
Description:
GetLabelDownloadVariablesList method returns list of label variables. It has to be
set before using metods like ExportToPrinter or DownloadToPrinter.
Method returns interface to the variable list of label variables.
Syntax:
Function GetLabelDownloadVariablesList(LabelID As Long) As
VariableList
Method:
Advanced
See also:
ExportToPrinter, DownloadToPrinter
IsDemo
Description:
This property tells the client application whether the server is running in DEMO
mode or not.
Syntax:
Property IsDemo As Boolean
Access Rights:
read-only
21
ActiveX interface
Method:
Basic, Advanced
IsLabelExportable
Description:
IsLabelExportable method can be used to check in advance, if the label can be
exported. This function can be used from applications, which later use the
“ExportToPocketPC” ActiveX method.
When label can be exported, the method returns TRUE.
Syntax:
Function IsLabelExportable() As Boolean
Method:
Advanced
See also:
LabelExpotToPocket
JobRun
Description:
Function executes specified JOB file.
Syntax:
Function JobRun(FileName As String) As Boolean
Method:
Basic, Advanced
LabelClose
Description:
Closes the label with specified ID. If it succeeds TRUE is returned.
Syntax:
Function LabelClose(LabelID As Long) As Boolean
Method:
Basic
See also:
22
ActiveX interface
LabelOpen
LabelCreate
Description:
Creates new label document and returns interface as a result
Syntax:
Function LabelCreate() As ILGLabel
Method:
Advanced
LabelExportToPocket
Description:
Function executes the same action as choosing the command File|Export|Export
to terminal. All the necessary files are created in directory specified as second
parameter.
Syntax:
Function LabelExportToPocket(LabelID As Long, ExportDir As
String) As Boolean
Method:
Basic, Advanced
See also:
IsLabelExportable
LabelGeneralExport
Description:
Performs an export of the label specified by LabelID (this label has to be open with
LabelOpen call where you retrieve the ID of the label), the exported files are placed
into the ExportDir folder
Syntax:
Function LabelGeneralExport(LabelID As Long, ExportDir As
String) As Boolean
Method:
Basic
LabelGetVarCount
Description:
23
ActiveX interface
Function returns number of variables on the label with specified label ID The
returned value is zero based index. To get an actual number of variables on the
label you have to add up 1.
Syntax:
Function LabelGetVarCount(LabelID As Long) As Long
Example:
Label has 5 variables. LabelGetVarCount will return number 4.
Label has 17 variables. LabelGetVarCount will return number 16.
Method:
Basic
See also:
LabelGetVarName, LabelGetVarProperty, LabelSetVar
LabelGetVarName
Description:
Function returns the variable name with the specified variable number (VarID) on
the label with specified label ID. VarID is a number of variable from 1 to number of
variables on the label (returned by LabelGetVarCount function).
Syntax:
Function LabelGetVarName(LabelID As Long, VarID As Long) As
String
Method:
Basic
See also:
LabelGetVaCount, LabelGetVarProperty, LabelSetVar
LabelGetVarProperty
Description:
Function returns a property of a variable with the name VarName. PropName
specifies name of the property to be returned.
Possible values for PropName are:
Value
Name
24
ActiveX interface
ID
Used
VarQuantity
InputType
Description
Prefix
Suffix
Length
FixedLength
MultiLine
LineCount
LineLength
FormatID
Justification
PadChar
WordWrap
MinValue
MaxValue
HasMinValue
HasMaxValue
InputPicture
OutputPicture
PictureType
Value Description
1 Prompt
2 System clock
3 PrinterClock
4 Global
5 Generated
6 Database
25
ActiveX interface
"Prompt"
"PromptType"
"DefValue"
"DefType"
"IsDynamic"
"IsRequired"
Variable types are self-explanatory. If the type is boolean, then the return value is
either TRUE or FALSE. Otherwise the value is string or number.
Syntax:
Function LabelGetVarProperty(LabelID As Long, VarName As
String, PropName As String) As String
Method:
Basic
See also:
LabelGetVarName, LabelGetVarCount, LabelSetVar
LabelOpen
Description:
Opens an existing label. As a parameter the label file name (LabelName) should be
specified. If the label is successfully opened, a label ID is returned, which will later
be used in other functions. If it doesn't succeed -1 if is returned. The reason for
failure can be obtained from ErrorMessage and DetailedMessage functions.
PrinterName is optional parameter, and means that the label will be opened with
that printer.
Syntax:
Function LabelOpen(FileName As String, [PrinterName as
String]) As Long
Method:
Basic
See also:
LabelClose
LabelOpenEx
Description:
26
ActiveX interface
LabelOpenEx method returns the interface of label selected with the filename. For
more information about ILGLabel please read ILGLabel chapter.
PrinterName is optional parameter, and means that the label will be opened with
that printer.
Syntax:
Function LabelOpenEx(FileName As String, [PrinterName As
String]) As ILGLabel
Method:
Advanced
LabelOpenExForPrinter
Description:
This method is the same as LabelOpenEx just that it opens the label with the
specified
printer (if the printer does not exist then the label is not opened)
Syntax:
Function LabelOpenExForPrinter(FileName As String, PrinterName
As
String) As ILGLabel
Method:
Advanced
LabelOpenForPrinter
Description:
This method is the same as LabelOpen just that it opens the label with the specified
printer (if the printer does not exist then the label is not opened)
Syntax:
Function LabelOpenForPrinter(FileName As String, PrinterName
As
String) As Long
Method:
Basic
LabelPrint
Description:
This function prints the label with the specified label ID. Quantity must be
represented as a string.
27
ActiveX interface
The quantity parameter is the print quantity of the labels; it can be a number, or one
of following words:
VARIABLE
UNLIMITED
The first parameter means printing on the base of the variable quantity (one of the
variables sets the quantity), the second one means unlimited printing (printing from
the whole database file for example).
Skip, Identical and LabelSets are optional parameters. Skip parameter must be
provided in order you want to skip a number of labels before printing. Identical
parameter defines the amount of identical copies of the label. LabelSets is the
number of label sets which you want to print.
Syntax:
Function LabelPrint(LabelID As Long, Quantity As String, Skip
As String, Identical As String, LabelSets As String) As
Boolean
Example
Success = LabelPrint(1, “1”)
Method:
Basic
See also:
LabelSessionPrint, LabelSessionStart, LabelSessionEnd, LabelSetPrinter
LabelSessionEnd
Description:
The function ends print session.
Syntax:
Function LabelSessionEnd(LabelID As Long) As Boolean
See also:
LabelSessionStart, LabelSessionPrint, LabelPrint, LabelSetPrinter
Method:
Basic
28
ActiveX interface
LabelSessionPrint
Description:
You send the data stream to printer using this function.
This function prints the label with the specified label ID. Quantity must be
represented as a string.
The quantity parameter is the print quantity of the labels; it can be a number, or one
of following words:
VARIABLE
UNLIMITED
The first parameter means printing on the base of the variable quantity (one of the
variables sets the quantity), the second one means unlimited printing (printing from
the whole database file for example).
You can use multiple LabelSessionPrint commands one after another and join them
in single data stream. The stream is not closed until the LabelSessionEnd occurs.
Syntax:
Function LabelSessionPrint(LabelID As Long, Quantity As
String) As Boolean
See also:
LabelSessionStart, LabelSessionEnd, Labelprint, LabelSetPrinter
Method:
Basic
LabelSessionStart
Description:
All three functions (LabelSessionStart, LabelSessionPrint, LabelSessionEnd) are
used together. If ordinary command LabelSessionPrint is used, every time a
complete data stream for printer is sent to printer. If you want to join multiple Print
commands into one data stream, you can use the LabelSessionStart command
followed with any number of LabelSessionPrint commands and in the end use the
LabelSessionEnd command. The stream is not closed until the LabelSessionEnd
occurs. These commands offer optimal printing ,because and it is not necessary to
generate a complete data stream for each print session. SessionStart method clean
label variables. LabelSetVar has to be used after LabelSessionStart method.
Syntax:
Function LabelSessionStart(LabelID As Long) As Boolean
29
ActiveX interface
Method:
Basic
See also:
LabelSessionPrint, LabelSessionEnd, LabelPrint, LabelSetPrinter
LabelSetPrinter
Description:
This function changes the printer on which the label will be printed.
Syntax:
Function LabelSetPrinter(LabelID As Long, PrinterName As
String) As Boolean
Method:
Basic
See also:
LabelSessionPrint, LabelSessionEnd, LabelSessionStart, LabelPrint
LabelSetPrintJobName
Description:
Using this function you can set the Print job name that Label Gallery will use at the
next print command. After printing the name is returned in normal state.
Syntax:
Function LabelSetPrintJobName(LabelID As Long, PrinterName As
String) As Boolean
Method:
Basic
LabelSetVar
Description:
The function sets the value of the specified variable. Label ID, variable name and its
desired value must be specified. If you want, you can also set the Step and Count
options for the automatic incrementing of variable. If you don't want to change that,
specify -9999 for Count and Step.
Quantity:
Function LabelSetVar(LabelID As Long, Name As String, Value As
String, Step As Long, Count As Long) As Boolean
30
ActiveX interface
Method:
Basic
See also:
LabelGetvarCount, LabelGetVarName, LabelGetVarProperty
LabelTestConnection
Description:
With this function you can check the current link between LabelID and name of the
loaded label file. In case the OLE connection was broken or Label Gallery
application was closed, you can use this function as a tester for OLE server activity.
If function returns false, this means that somebody has closed the label file and
current LabelID should be discarded. You should also call LabelOpen function
again.
Syntax:
Function LabelTestConnection(LabelID As Long, FileName As
String) As Boolean
Method:
Basic
Login
Description:
Performs login into Label Gallery if it has not been executed already.
Syntax:
Function Login(UserName As String, Level As Long) As Boolean
Method:
Basic, Advanced
ProcessID
Description:
Returns the process id of the application (in case user needs to "kill" it)
Syntax:
Property ProcessID As Long, read-only
Access Rights:
read-only
31
ActiveX interface
Method:
Basic, Advanced
Quit
Description:
This procedure closes the Label Gallery if it was opened with the client application.
Syntax:
Quit
Method:
Basic, Advanced
SetDefaultPrinter
Description:
Returned result :
1 - the printer could not be set
0 - the printer could be set
Syntax:
Function SetDefaultPrinter(DefaultPrinterName As String) As Long
Method:
Basic, Advanced
32
ActiveX interface
SetApplicationProperty
Description:
Function enables dialogs to be shown when application is run under system service.
Syntax:
Function SetApplicationProperty(PropertyName As String, PropertyValue As String)
As Long
33
ActiveX interface
INiceLabel
Objects As
IObjectsList
Item As IObject
FindByID As IVar
Variables As
FindByName As IVar
IVariablesList
Item As IVar
CreatePrompted As IVar
GlobalVariables
Create As IVar
As IVariablesList
Functions As
IFunction List
CreateExternalFunction As
InputVars As IVariableList FindByID As IVar
IEXTFunction
OutputVars As IVariableList FindByName As IVar
FindByID As IFunction
Item As IVar
Create As IVar
Item As IFunction
Fields As IFieldList
Databases As
IDatabaseList FindByName As IDBField Variable As IVar
Item As IDBField
FindByID As IDatabase
Item As IVar
CreatePrompted As IVar
Create As IVar
Parameters As
IParameterList
34
ActiveX interface
AnchorElementID
Description:
35
ActiveX interface
Currently not used. Intended to be used, when position of one element can be
dependant on position/size of another element.
Syntax:
AnchorElementID As Long
AnchorLevel
Description:
Currently not used.
Syntax:
AnchorLevel As Long
AnchorPoint
Description:
Identifies the point of the object, which is fixed on the label. If the object size is
changed, the specified AnchorPoint remains on the same position.
Value Description
0 top left
1 top center
2 top right
3 mid left
4 mid center
5 mid right
6 bottom left
7 bottom center
8 bottom right
Syntax:
AnchorPoint As Long
See also:
Hight, Left, Top, Width
36
ActiveX interface
AutoCDCalculation
Description:
When this property is true, CheckDigit for the barcode is calculated automatically –
only the contents should be provided. When the property value is false, Label
Gallery will verify the contents of the barcode, as the checkdigit is provided together
with the data.
Syntax:
AutoCDCalculation As Boolean
See also:
IncludeCD
BarcodeType
Description:
Returns the Barcode Type.
Value Description
1 EAN13
2 EAN8
3 UPC_A
4 UPC_E
5 I2OF5
6 CODE39
7 CODE128A
8 CODE128B
9 CODE128C
10 CODABAR
11 CODE128
12 GS1-128
13 POSTNET32
14 POSTNET37
15 POSTNET52
16 POSTNET62
17 BOOKLAND
18 DISTRIBUTION
37
ActiveX interface
19 CODE93
20 NG_EAN13
21 NG_EAN8
22 PDF417
23 BC412
24 DATAMATRIX
25 MAXICODE
26 EAN128
27 AZTEC
28 QR
29 SSCC
30 MSI
31 CBLOCK_F
32 PHARMACODE
33 EXTCODE39
34 EAN14
35 KIX
36 ITF14
37 2DPHARMACODE
38 CODE32
39 EAN13+2
40 EAN13+5
41 EAN8+2
42 EAN8+5
43 UPC_A+2
44 UPC_A+5
45 UPC_E+2
46 UPC_E+5
47 ITF16
48 MICROPDF
49 GS1 Databar
50 Addon 2
51 Addon 5
52 Code 39 Tri Optik
53 Plessy
55 Anker
56 MicroQR
38
ActiveX interface
Syntax:
Property BarcodeType As String
Access Rights:
read-only
See also:
Color, ContentsMask
Color
Description:
With 32-bit value you can specify any RGB color. The color value has the following
hexadecimal form:
0x00bbggrr
The low-order byte (rr) contains a value for the relative intensity of red; the second
byte (gg) contains a value for green; and the third byte (bb) contains a value for
blue. The fourth byte byte must be zero.
Each color parameter can range from 0x0 to 0xFF.
Syntax:
Color As Long
See also:
BarcodeType, ContentsMask
Contents
Description:
Returns the current contents of the element.
Syntax:
Property Contents As String
39
ActiveX interface
Access Rights:
read-only
ContentsMask
Description:
Sets and gets the ContentsMask attribute.
Syntax:
ContentsMask As String
See also:
BarcodeType, Color
FormatID
Description:
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Value Description
0 All
1 Numeric
2 Alphanumeric
3 Letters
4 7 bit
5 Hex
6 Date
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
Syntax:
FormatID As Long
GetPropery
Description:
Returns the property of a barcode.
40
ActiveX interface
Syntax:
Function GetProperty(Name As String) As String
HasQuietZone
Description:
If this property is true, the size of the barcode object is enlarged by the quiet zone.
Syntax:
HasQuietZone As Boolean
Height
Description:
Height of the element (in 0.01 mm units).
Syntax:
Property Height As Long
Access Rights:
read-only
See also:
AnchorPoint, Left, Top, Width
ID
Description:
ID of the element
Syntax:
Property ID As Long
IncludeCD
Description:
For some barcode symbologies, CheckDigit is optional (Code39, I2of5). This
property specifies, if checkdigit is to be included in the barcode or not.
41
ActiveX interface
Syntax:
IncludeCD As Boolean
See also:
AutoCDCalculation
IsLocked
Description:
When the element’s position is locked on the label, this property has the value
TRUE
Syntax:
IsLocked As Boolean
Kind
Description:
Element kind.
Value Description
301 TextObject
302 RectangleObject
303 BitmapObject
304 BarcodeObject
305 LineObject
306 InverseObject
307 OleObject
308 Downloaded Graphic Object
309 ParagraphObject
312 RTFTextObject
313 EllipseObject
Syntax:
Property Kind As Long
Access Rights:
42
ActiveX interface
read-only
Left
Description:
Left position of the element (in 0.01 mm units).
Syntax:
Property Left As Long
Access Rights:
read-only
See also:
Hight, AnchorPoint, Top, Width
MaxLenght
Description:
Returns the maximum data length available for this barcode.
Syntax:
MaxLenght As Long
See also:
Name
Name
Description:
Name property represents the name of the barcode.
Syntax:
Name As String
See also:
MaxLenght
Move
Description:
43
ActiveX interface
Syntax:
Move(X As Long, Y As Long)
PageNumber
Description:
The Page index, where the element is located. When Duplex print is used, this index
can have the value 0 (first page) or 1 (second page). When duplex printing is not
enabled, this property is ignored (the value should always be 0).
Syntax:
PageNumber As Long
See also:
PrintAsGraphics
PrintAsGraphics
Description:
When this property is set to TRUE, the barcode will always be printed as graphics,
even if the printer supports printing it with an internal command.
Syntax:
PrintAsGraphics As Boolean
See also:
PageNumber
Resize
Description:
Resize the element to the size Width, Height. The element is resized to the closest
size in case, that all sizes are not possible.
Syntax:
Resize(Width As Long, Height As Long)
See also:
ResizeFlag
44
ActiveX interface
ResizeFlag
Description:
Flag, which defines, how the object can be resized.
Value Description
0 no resizing
0x88 resizing is possible only in horizontal direction
0x22 resizing is possible only in vertical direction
0x55 resizing is possible only in both directions at the same time
Syntax:
Property ResizeFlag As Long
Access Rights:
read-only
See also:
Resize
RotateFlag
Description:
Flag, which defines, how the object can be rotated.
Possible values are:
Value Description
0 no rotation
0x07 90 degrees rotation
0x02 180 degrees rotation
0xFF 0-360 degrees rotation in steps of 1 degree
Syntax:
Property RotateFlag As Long
Access Rights:
read-only
See also:
45
ActiveX interface
Rotation
Rotation
Description:
Specifies the element’s rotation. When the element can be rotated only in steps of
90 degrees.
Value Description
0 0 deg.
1 90 deg.
2 180 deg.
3 270 deg.
When the element can be rotated in steps of 1 degree, the property has the value
from 0 to 359.
Syntax:
Rotation As Long
See also:
Rotation
Selected
Description:
When the element is selected, this property is TRUE.
Syntax:
Selected As Boolean
SetContents
Description:
When the contents of an element should be changed, SetContents method should
be called. In case of success (the Value is valid for the element), the function
returns 0. In case of an error, the function returns –1.
Syntax:
46
ActiveX interface
SetVariable
Description:
Connects the element to the variable with ID. If the return value of the function is –1,
then some error occured during the connection. The best example for this is that
you want connect variable with fixed length to an element which requires different
fixed lenght. (EAN13 barcode). In such case element is not connected to any
variable – it is fixed.
Syntax:
Function SetVariable(ID As Long) As Long
See also:
Variable
Status
Description:
Status of the object.
Value Description
0 OK
1 Error condition
2 Phantom
Syntax:
Property Status As Long
Access Rights:
read-only
Top
Description:
47
ActiveX interface
Syntax:
Property Top As Long
Access Rights:
read-only
See also:
Hight, Left, AnchorPoint, Width
Variable
Description:
Returns the interface to the variable, which is attached to the element.
Syntax:
Property Variable As IVar
Access Rights:
read-only
See also:
SetVariable
Width
Description:
Width of the element (in 0.01 mm units).
Syntax:
Property Width As Long
Access Rights:
read-only
See also:
Hight, Left, Top, AnchorPoint
ZOrder
Description:
48
ActiveX interface
Value of Z order of the object position. When the Zorder value is the highest, the
element is placed on the top of all others.
Syntax:
ZOrder As Long
Access Rights:
read-only
49
ActiveX interface
Alias
Description:
Alias represents the name of the alias for the database. See BDE Administrator.
Syntax:
Alias As String
DBPassword
Description:
DBPassword property represents the password for the database.
Syntax:
DBPassword As String
Delimiter
Description:
With this property you can select the Delimiter character that is used when
separator character is used in the text field itself. The delimiter should be used to
enclose such field. Text between two delimiter characters is treated as one field
although it contains the field separator character.
Syntax:
Delimiter As String
Description:
With this property you can select the Separator character that is used for a border
between two fields in a text file.
Syntax:
Separator As String
See also:
Separator, IsDelimited
DriverType
Description:
50
ActiveX interface
DriverType is in main driver name. You can find suitable names in BDE
Administrator and also in Label Gallery Plus in Database dialog box under the driver
selection.
Syntax:
DriverType As String
See also:
Name, Table, Order, ReviewBeforePrint
EPDSConnection
Description:
This property is defining the database connection, as is internally used by Label
Gallery programs.
Syntax:
Property EPDSConnection As String
Fields
Description:
Returns the interface to the fields which are present in the database.
Syntax:
Property Fields As IFieldList
Access Rights:
read-only
ID
Description:
ID of the database.
Syntax:
Property ID As Long
Access Rights:
read-only
51
ActiveX interface
InputVars
Description:
Returns the interface to the variable list for input variables.
Syntax:
Property InputVars As IVariableList
Access Rights:
read-only
See also:
OutputVars
IsDelimited
Description:
If data fields in your text file are separated with some special character, you should
set this property to TRUE value. In case that your data fields always occupy the
same number of characters this property should be set to FALSE.
Syntax:
IsDelimited As Boolean
See also:
Separator, Delimiter
IsUsed
Description:
If this property is true then this function is used on the label
Syntax:
IsUsed As Boolean
Kind
Description:
Kind property for the database is always set to 4.
52
ActiveX interface
Value Description
1 Concatenate
2 Subset
3 Linear Function
4 Database
5 EAN 128
6 CD Algo
7 Date Addition
8 Euro
9 External
10 SSCC
Syntax:
Property Kind As Long
Access Rights:
read-only
Name
Description:
In the Name property name of the database is stored. This property can be set in
Label Gallery Plus on General tab of Database dialog box.
Syntax:
Name As String
See also:
DriverType, Table, Order, ReviewBeforePrint
Navigation
Description:
Navigation property represents how record retrieving will be set for selected
database access.
Possible values for the Navigation property are:
Value Description
53
ActiveX interface
0 First
1 Select
2 All
3 Last
Syntax:
Navigation As Long
See also:
SelectRecords, SelectRecordsCount
Order
Description:
Order property represents the name of the field which is used for sorting records.
Syntax:
Order As String
See also:
Name, Table, DriverType, ReviewBeforePrint
OutputVars
Description:
Returns the interface to the variable list for output variables.
Syntax:
Property OutputVars As IVariableList
Access Rights:
read-only
See also:
InputVars
Parameters
Description:
Returns the interface to the parameters (filters) which are present in the database.
54
ActiveX interface
Syntax:
Property Parameters As IParameterList
Access Rights:
read-only
See also:
SQL
ReviewBeforePrint
Description:
ReviewBeforePrint property's value is TRUE, if ReviewBeforePrint option is enabled
in Database Access definition. This option makes it possible to change the result of
a function just before using its results on the label.
Syntax:
ReviewBeforePrint As Boolean
See also:
Name, Table, Order, DriverType
SelectRecords
Description:
Execute this method if you would like to show Label Gallery’s Record Selection
dialog box, where the user has possibility to select which records from the database
will be printed.
Parent parameter, which must be passed to the SelectRecords function is a handle
to the parent window on which the Record Selection dialog box will appear.
Syntax:
Access Rights:
read-only
See also:
Navigation, SelectRecordsCount
55
ActiveX interface
SelectedRecordCount
Description:
Returns the number of selected records for the database, which is associated with
this IDatabase interface. If no records are selected or database connection does not
exists the property contains - 1
Syntax:
Property SelectedRecordCount As Long
Access Rights:
read-only
See also:
SelectRecords, Navigation
Separator
Description:
With this property you can select the Separator character that is used for a border
between two fields in a text file.
Syntax:
Separator As String
See also:
IsDelimited, Delimiter
SQL
Description:
With SQL property you can select SQL statements for the database. Changing SQL
statements can lead to failure in reading data from table.
Syntax:
SQL As String
Access Rights:
read-only
See also:
Parameters
56
ActiveX interface
Table
Description:
Table property represents the name of the table, which is used on this database
access.
Syntax:
Table As String
See also:
Name, DriverType, Order, ReviewBeforePrint
Count
Description:
Count property returnts the number of databases connected to the label.
Syntax:
Property Count As Long
Access Rights:
read-only
Item
Description:
Returns the interface to the database. Database is selected with Index.
Syntax:
Function Item(Index As Long) As IDatabase
57
ActiveX interface
FindByName
Description:
Returns the interface to the database. Database is selected with the name of the
database.
Syntax:
Function FindByName(Name As String) As IDatabase
See also:
FindByID
FindByID
Description:
Returns the interface to the database. Database is selected with database ID.
Syntax:
Function FindByID(ID As Long) As IDatabase
See also:
FindByname
Alias
Description:
Alias represents the name of the alias for the database. See BDE Administrator.
Syntax:
Alias As String
58
ActiveX interface
DBPassword
Description:
DBPassword property represents the password for the database.
Syntax:
DBPassword As String
Delimiter
Description:
Property for setting or retrieving the delimiter char that is used in the text database.
Syntax:
Delimiter As String
DriverType
Description:
DriverType is in main driver name. You can find suitable names in BDE
Administrator and also in Label Gallery Plus in Database dialog box under the driver
selection.
Syntax:
DriverType As String
IsDelimited
Description:
If data fields in your text file are separated with some special character, you should
set this property to TRUE value. In case that your data fields always occupy the
same number of characters this property should be set to FALSE.
Syntax:
IsDelimited As Boolean
See also:
Separator
59
ActiveX interface
Separator
Description:
With this property you can select the Separator character that is used for a border
between two fields in a text file.
Syntax:
Separator As String
See also:
IsDelimited
IsSelected
Description:
When the field is selected for usage on the label, this property is TRUE.
Syntax:
Property IsSelected As Boolean
Access Rights:
read-only
Length
Description:
Length property represents the length of the field.
Syntax:
Property Length As Long
60
ActiveX interface
Access Rights:
read-only
Name
Description:
Name property represents the name of the field.
Syntax:
Property Name As String
Access Rights:
read-only
Number
Description:
Number property represents the number of the field.
Syntax:
Property Number As Long
Access Rights:
read-only
Offset
Description:
Offset property represents the offset of the beggining of the line. This property is
available only for text files.
Syntax:
Property Offset As Long
Access Rights:
read-only
Variable
Description:
Returns the interface to the variable, which is connected with the database field.
Syntax:
61
ActiveX interface
Access Rights:
read-only
Field
Description:
Field property represents the name of the field which is used for filter.
Syntax:
Field As String
Relation
Description:
Relation property represents relation between field and a variable.
Possible values for Relation are:
Value Description
0 ==
1 >
2 >=
3 <
4 <=
5 <>
6 LIKE
Syntax:
Relation As Long
62
ActiveX interface
SetVariable
Description:
Connects the element to the variable with ID. If the return value of the function is –1,
then some error occured during the connection. The best example for this is that
you want connect variable with fixed length to an element which requires different
fixed lenght. (EAN13 barcode). In such case element is not connected to any
variable – it is fixed.
Syntax:
Function SetVariable(ID As Long) As Long
See also:
Variable
Variable
Description:
Returns the interface to the variable, which is connected with the database field.
Syntax:
Property Variable As IVar
Access Rights:
read-only
See also:
SetVariable
63
ActiveX interface
OutputVars 1,2,3
ProviderName 2,3
ReviewBeforePrint 1,2,3
Definition
Description:
Definition property represents a string, which consists a definiton for the function.
Because of proper initialization of the label, this string is saved in a label file.
Syntax:
Definition As String
Description
Description:
In the Description property description of the function is stored.
Syntax:
Description As String
See also:
Name, ReviewBeforePrint
ID
Description:
ID of the element
Syntax:
Property ID As Long
InputVars
Description:
Returns the interface to the variable list for input variables.
Syntax:
Property InputVars As IVariableList
64
ActiveX interface
Access Rights:
read-only
IsContentsProvider
Description:
If the function is contents provider for the element, then ISContentsProvider property
has value TRUE.
Syntax:
Property IsContentsProvider As Boolean
Access Rights:
read-only
ProviderName
IsUsed
Description:
If this property is true then this function is used on the label
Syntax:
Property IsUsed As Boolean
Access Rights:
read-only
ProviderName
Kind
Description:
This property represents the value for the type of the function.
Possible values are:
Value Description
1 Concatenate
2 Subset
3 Linear Function
4 Database
5 EAN 128
65
ActiveX interface
6 CD Algo
7 Date Addition
8 Euro
9 External
10 SSCC
Syntax:
Property Kind As Long
Acces Rights:
read-only
Name
Description:
Name property represents the name of the function.
Syntax:
Name As String
See also:
Description, ReviewBeforePrint
OutputVars
Description:
Returns the interface to the variable list for output variables.
Syntax:
Property OutputVars As IVariableList
Access Rights:
read-only
ProviderName
Description:
ProviderName represents the name of the component, which manage the execution
and definition of the content's provider.
Syntax:
66
ActiveX interface
Access Rights:
read-only
See also:
IsContentsProvider
ReviewBeforePrint
Description:
ReviewBeforePrint property's value is TRUE, if ReviewBeforePrint option is enabled
in function definition. This option makes it possible to change the result of a function
just before using its results on the label.
Syntax:
ReviewBeforePrint As Boolean
Access Rights:
read-only
See also:
Name, Description
Count
Description:
Count property returns the number of fields, which are defined in the database.
Syntax:
Property Count As Long
Access Rights:
read-only
67
ActiveX interface
FindByName
Description:
Returns the interface to the field. Field is selected with the name of the field.
Syntax:
Function FindByName(Name As String) As IDBField
Item
Description:
Returns the interface to the field of the database. Field is selected with Index.
Syntax:
Function Item(Index As Long) As IDBField
Description
Description:
In the Description property description of the function is stored.
Syntax:
Description As String
See also:
Name, ReviewBeforePrint
68
ActiveX interface
ID
Description:
ID of the element
Syntax:
Property ID As Long
Access Rights:
read-only
InputVars
Description:
Returns the interface to the variable list for input variables.
Syntax:
Property InputVars As IVariableList
Access Rights:
read-only
Kind
Description:
This property represents the value for the type of the function.
Possible values are:
Value Description
1 Concatenate
2 Subset
3 Linear Function
4 Database
5 EAN 128
6 CD Algo
7 Date Addition
8 Euro
9 External
10 SSCC
69
ActiveX interface
Syntax:
Property Kind As Long
Acces Rights:
read-only
Name
Description:
Name property represents the name of the function.
Syntax:
Name As String
See also:
Description, ReviewBeforePrint
OutputVars
Description:
Returns the interface to the variable list for output variables.
Syntax:
Property OutputVars As IVariableList
Access Rights:
read-only
ReviewBeforePrint
Description:
ReviewBeforePrint property's value is TRUE, if ReviewBeforePrint option is enabled
in function definition. This option makes it possible to change the result of a function
just before using its results on the label.
Syntax:
ReviewBeforePrint As Boolean
See also:
Name, Description
70
ActiveX interface
Count
Description:
Count property returns the number of functions, which are defined on the label.
Syntax:
Property Count As Long
Access Rights:
read-only
CreateExternalFunction
Description:
This method creates an external function. Output is an interface to the new function.
Syntax:
Function CreateExternalFunction() As IExtFunction
FindByID
Description:
Returns the interface to the function. Function is selected with the ID of the function.
Syntax:
Function FindByID(ID As Long) As IFunction
See also:
FindByName
FindByName
Description:
71
ActiveX interface
Returns the interface to the function. Function is selected with the name of the
function.
Syntax:
Function FindByName(Name As String) As IFunction
See also:
FindByID
Item
Description:
Returns the interface to the function. Function is selected with Index.
Syntax:
Function Item(Index As Long) As IFunction
72
ActiveX interface
Selected 1,2,3
Status 1,2,3
Top 1,2,3
Variable 1,2,3
VertMirror 1,2,3
Width 1,2,3
ZOrder 1,2,3
AnchorElementID
Description:
Currently not used. Intended to be used, when position of one element can be
dependant on position/size of another element.
Syntax:
AnchorElementID As Long
AnchorLevel
Description:
Currently not used.
Syntax:
AnchorLevel As Long
AnchorPoint
Description:
Identifies the point of the object, which is fixed on the label. If the object size is
changed, the specified AnchorPoint remains on the same position.
Possible values:
Value Description
0 top left
1 top center
2 top right
3 mid left
4 mid center
5 mid right
73
ActiveX interface
6 bottom left
7 bottom center
8 bottom right
Syntax:
AnchorPoint As Long
See also:
Hight, Left, Top, Width
FileName
Description:
FileName property represents the file name of the graphics file.
Syntax:
Property FileName As String
Access Rights:
read-only
FormatID
Description:
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Value Description
0 All
1 Numeric
2 Alphanumeric
3 Letters
4 7 bit
5 Hex
6 Date
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
74
ActiveX interface
Syntax:
FormatID As Long
Height
Description:
Height of the element (in 0.01 mm units).
Syntax:
Property Height As Long
Access Rights:
read-only
See also:
Left, AnchorPoint, Top, Width
HorzMirror
Description:
In case that HorzMirror property has value TRUE picture is mirrored horizontally. In
the other case picture remains unmirrored.
Syntax:
HorzMirror As Boolean
See also:
VertMirror
ID
Description:
ID of the element
Syntax:
Property ID As Long
Access Rights:
read-only
ImageType
Description:
75
ActiveX interface
Syntax:
Property ImageType As Long
Access Rights:
read-only
IsLocked
Description:
When the element’s position is locked on the label, this property has the value
TRUE
Syntax:
IsLocked As Boolean
Kind
Description:
Element kind.
Value Description
301 TextObject
302 RectangleObject
303 BitmapObject
304 BarcodeObject
305 LineObject
306 InverseObject
307 OleObject
308 Downloaded Graphic Object
309 ParagraphObject
312 RTFTextObject
313 EllipseObject
76
ActiveX interface
Syntax:
Property Kind As Long
Access Rights:
read-only
Left
Description:
Left position of the element (in 0.01 mm units).
Syntax:
Property Left As Long
Access Rights:
read-only
See also:
Hight, AnchorPoint, Top, Width
Load
Description:
With Load method you can load the graphics. Filename is used for setting the file
name of the graphics file.
Syntax:
Function Load(FileName As String) As Long
Move
Description:
Move the element to the location X, Y
Syntax:
Move(X As Long, Y As Long)
Name
Description:
Name property represents the name of the graphics.
77
ActiveX interface
Syntax:
Name As String
OnMemoryCard
Description:
In case that graphics is stored on a memory card then OnMemoryCard propery has
value TRUE.
Syntax:
OnMemoryCard As Boolean
PageNumber
Description:
The Page index, where the element is located. When Duplex print is used, this index
can have the value 0 (first page) or 1 (second page). When duplex printing is not
enabled, this property is ignored (the value should always be 0).
Syntax:
PageNumber As Long
ResizeFlag
Description:
Flag, which defines, how the object can be resized.
Value Description
0 no resizing
0x88 resizing is possible only in horizontal direction
0x22 resizing is possible only in vertical direction
0x55 resizing is possible only in both directions at the same time
Syntax:
Property ResizeFlag As Long
Access Rights:
read-only
78
ActiveX interface
ResizeMode
Description:
With ResizeMode it is possible to set the way of resizing the graphics.
Possible values for ResizeMode are:
Value Description
0 Original si1ze
1 Proportional resize
2 Fit to size.
Syntax:
ResizeMode As Long
RotateFlag
Description:
Flag, which defines, how the object can be rotated.
Possible values are:
Value Description
0 no rotation
0x07 90 degrees rotation
0x02 180 degrees rotation
0xFF 0-360 degrees rotation in steps of 1 degree
Syntax:
Property RotateFlag As Long
Access Rights:
read-only¸
See also:
Rotation
Rotation
Description:
Specifies the element’s rotation. When the element can be rotated only in steps of
90 degrees.
79
ActiveX interface
Value Description
0 0 deg.
1 90 deg.
2 180 deg.
3 270 deg.
When the element can be rotated in steps of 1 degree, the property has the value
from 0 to 359.
Syntax:
Rotation As Long
See also:
RotateFlag
Selected
Description:
When the element is selected, this property is TRUE.
Syntax:
Selected As Boolean
SetVariable
Description:
Connects the element to the variable with ID. If the return value of the function is –1,
then some error occured during the connection. The best example for this is that
you want connect variable with fixed length to an element which requires different
fixed lenght. (EAN13 barcode). In such case element is not connected to any
variable – it is fixed.
Syntax:
Function SetVariable(ID As Long) As Long
See also:
Variable
80
ActiveX interface
Status
Description:
Status of the object.
Value Description
0 OK
1 Error condition
2 Phantom
Syntax:
Property Status As Long
Access Rights:
read-only
Top
Description:
Top position of the element (in 0.01 mm units).
Syntax:
Property Top As Long
Access Rights:
read-only
See also:
Hight, AnchorPoint, Left, Width
Variable
Description:
Returns the interface to the variable, which is connected with the database field.
Syntax:
Property Variable As IVar
81
ActiveX interface
Access Rights:
read-only
See also:
SetVariable
VertMirror
Description:
In case that VertMirror property has value TRUE picture is mirrored vertically. In the
other case picture remains unmirrored.
Syntax:
VertMirror As Boolean
See also:
HorzMirror
Width
Description:
Width of the element (in 0.01 mm units).
Syntax:
Property Width As Long
Access Rights:
read-only
See also:
Hight, AnchorPoint, Top, Left
ZOrder
Description:
Value of Z order of the object position. When the Zorder value is the highest, the
element is placed on the top of all others.
Syntax:
ZOrder As Long
82
ActiveX interface
83
ActiveX interface
VariableProperties 1,2,3
AspectRatio
Description:
AspectRatio is a Boolean property which returns TRUE if aspect ratio is used
otherwise FALSE is returned.
Syntax:
AspectRatio As Boolean
CurrUnit
Description:
CurrUnit represent the current measurement unit used in the label.
Possible values for are:
Value Description
0 Cm
1 Inch
2 Dot
3 Mm
Syntax:
Property CurrUnit As Long
Access Rights:
read-only
DatabaseProperties
Description:
DatabaseProperties method opens a dialog box with properties for the database
selected with ID.
Syntax:
Function DatabaseProperties(ID As Long) As Boolean
See also:
Databases, Deletedatabase, NewDatabase, NewDatabaseWiz, SelectDatabase
84
ActiveX interface
Databases
Description:
Returns the interface to the database list.
Syntax:
Property Databases As IDatabaseList
Access Rights:
read-only
See also:
DatabaseProperties, Deletedatabase, NewDatabase, NewDatabaseWiz,
SelectDatabase
DeleteDatabase
Description:
DeleteDatabase method deletes a database connection from the label. In case of
success method returns value TRUE.
Syntax:
Function DeleteDatabase(ID As Long) As Boolean
Avaliabilty:
Label Gallery Plus only
See also:
DatabaseProperties, DataBases, NewDatabase, NewDatabaseWiz, SelectDatabase
DeleteFunction
Description:
DeleteFunction method deletes a function from the label. In case of success method
returns value TRUE.
Syntax:
Function DeleteFunction(ID As Long) As Boolean
Avaliabilty:
Label Gallery Plus only
85
ActiveX interface
See also:
Functions, FunctionProperties
DeleteObject
Description:
DeleteObject method deletes an object from the label. In case of success method
returns value TRUE.
Syntax:
Function DeleteObject(ID As Long) As Boolean
Avaliabilty:
Label Gallery Plus only
See also:
Objects, ObjectProperties
DeleteVariable
Description:
DeleteVariable method deletes a variable from the label. In case of success method
returns value TRUE.
Syntax:
Function DeleteVariable(ID As Long) As Boolean
Avaliabilty:
Label Gallery Plus only
DownloadVariablesList
Description:
This method is set a list of variables whose value must be set if we wish to call any
export or Store to printer. If this is not done Export or Store to printer will fail.
Syntax:
Function DownloadVariablesList() As IVariableList
Avaliabilty:
Label Gallery Plus only
86
ActiveX interface
DownloadToPrinter
Description:
This method store label to printer. It is essential that we set all the variables in the
list using DownloadVariablesList method or method will fail.
Syntax:
Function DownloadToPrinter() As Boolean
Avaliabilty:
Label Gallery Plus only
ExportToPrinter
Description:
Use ExportToPrinter function when you want export the label directly to the printer
or to a file. When ExportFile parameter is blank exporting is done directly to the
printer otherwise it is done to the file.
With CreateLVR parameter you are defining whether you want export also the LVR
file, which contains the descriptions of the variables.
The ExportVariant defines how it is exported. This parameter depends on the printer
(Default = 1, other values represent for example: export to RAM, export to Flash,
export to PCMCIA, ...)
Syntax:
Function ExportToPrinter(ExportVariant As Long, ExportFile As
String, CreateLVR As Boolean) As Boolean
Functions
Description:
Returns the interface to the function list.
Syntax:
Property Functions As IFunctionList
Access Rights:
read-only
See also:
DeleteFunctions, FunctionProperties
FunctionProperties
Description:
87
ActiveX interface
FunctionProperties method opens a dialog box with properties for the function
selected with ID.
Syntax:
Function FunctionProperties(ID As Long) As Boolean
See also:
DeleteFunctions, Functions
GetDownloadLocationsList
Description:
Returns available slot names for recall printing. Current printer name of the selected
label is used.
Syntax:
Function GetDownloadLocationsList() As String
GetDownloadLocationsListForPrinter
Description:
Returns available slot names for recall printing. PrinterName is used as printer
name
Syntax:
Function GetDownloadLocationsListForPrinter(PrinterName As
String) As String
General Export
Description:
Performs export of the current label to the ExportDir folder
Syntax:
Function GeneralExport(ExportDir As String) As Boolean
GetCurrentState
Description:
Use GetCurrentState function when you want to get the state of Label Gallery.
Return result can be of the following:
1 - printing
2 - print preview
88
ActiveX interface
Syntax:
Function GetCurrentState() As Long
GetDependantFilesList
Description:
GetDependantFilesList function returns you the list of files, which are in use with
opened file.
As ListType you can set , which types of the file you wish to get. Below you
can find all possible ListType parameters:
Returned string is a comma delimited string. This means that in one string
there are names of all files in use. Return result is like this:
Syntax:
Function GetDependantFilesList(ListType As Long) As String
GetLabelPreviewEx
Description:
Use this function to generate the preview of the label. With this function it is possible
to create label previews for the header and tail labels also. Also two sided labels are
supported.
The extension of the FileName parameter defines in which format the preview will
be stored. Possible formats are BMP, JPG, PNG and GIF.
89
ActiveX interface
Syntax:
Function GetLabelPreviewEx(FileName As String, Width As Long,
Height As Long, LabelKind As Long, LabelSide As Long,
HasBorder As Boolean) As Boolean
GetPrinterDarknestList
Description:
This function returns the available darkness for the printer. The name of the printer
must be provided as a parameter.
Syntax:
Function GetPrinterDarknessList(PrinterName As String) As
String
See also:
GetPrinterSpeedList, GetPrinterSpeedUnit, GetPrintParam, PrinterName,
PrinterPort
90
ActiveX interface
GetPrinterParamEX
Description:
This function retrieve the value of printing parameter.
Explanation of the parameters:
PrinterName
Defines for which printer you want to retrieve the parameter,
blank value means that default printer will be taken.
ParamName
Defines which parameter should be retrieved :
PRINTSPEED – speed parameter as string value
PRINTDARKNESS - darkness parameter as string value
PRINTROTATION - rotation parameter as string value
PRINTDARKNESS1, PRINTDARKNESS2, PRINTDARKNESS3,
PRINTDARKNESS4,
PRINTDARKNESS5 - darkness on specific print head on the
printer
with multiple print heads
NUMBER_OF_FRONT_PAGE_COLORS - number of colors for the
specified
page side for the printers
with multiple print heads
NUMBER_OF_BACK_PAGE_COLORS - number of colors for the
specified
page side for the printers
with multiple print heads
Syntax:
See also:
GetPrinterSpeedList, GetPrinterSpeedUnit, GetPrintParam, PrinterName,
PrinterPort
GetPrinterParamList
Description:
This method returns comma separated list of values/names for specified
ParamName and specified PrinterName and the data you desire
91
ActiveX interface
It can be one of :
PRINTSPEED – speed parameter as string value
PRINTDARKNESS - darkness parameter as string value
PRINTROTATION - rotation parameter as string value
PRINTDARKNESS1, PRINTDARKNESS2, PRINTDARKNESS3,
PRINTDARKNESS4,
PRINTDARKNESS5 - darkness on specific print head on the
printer
with multiple print heads
FRONT_PAGE_COLOR_LIST - comma separated list of color values
represented
in integers(COLORREF)
BACK_PAGE_COLOR_LIST - comma separated list of color values
represented
in integers(COLORREF)
DataType
Parameter is used for parameters PRINTSPEED, PRINTDARKNESS,
PRINTDARKNESS1, PRINTDARKNESS2, PRINTDARKNESS3, PRINTDARKNESS4,
PRINTDARKNESS5 and it means whether you want to retrieve values list
or names list for the specified parameter. Values are actual values
for the speed/darkness while names are string representations for
those items (for example you use names when displaying this data to
user)
Syntax:
See also:
GetPrinterSpeedList, GetPrinterSpeedUnit, GetPrintParam, PrinterName,
PrinterPort
GetPrinterSpeedList
Description:
This function returns the available speeds for the printer. The name of the printer
must be provided as a parameter.
Syntax:
Function GetPrinterSpeedList(PrinterName As String) As String
See also:
GetPrinterDarknessList, GetPrinterSpeedUnit, GetPrintParam, PrinterName,
PrinterPort
GetPrinterSpeedUnit
Description:
92
ActiveX interface
This function returns the available speed units for the printer. The name of the
printer must be provided as a parameter.
Syntax:
Function GetPrinterSpeedUnit(PrinterName As String) As String
See also:
GetPrinterDarknessList, GetPrinterSpeedList, GetPrintParam, PrinterName,
PrinterPort
GetPrintParam
Description:
GetPrintParam function returns the value for provided printing parameter. Possible
values for Name parameter are:
PRINTSPEED
Function will return the speed parameter as string value.
PRINTDARKNESS
Function will return the darkness parameter as string value.
Syntax:
Function GetPrintParam(Name As String) As String
See also:
GetPrinterDarknessList, GetPrinterSpeedList, Get PrinterSpeedUnit, PrinterName,
PrinterPort
GlobalVariables
Description:
Returns the interface to the variable list for global variables.
Syntax:
Property GlobalVariables As IVariableList
Access Rights:
read-only
IsLabelReadOnly
Description:
IsLabelReadOnly property returns TRUE if label is opened in read only mode,
otherwise return value is FALSE.
93
ActiveX interface
Syntax:
Property IsLabelReadOnly As Boolean
Access Rights:
read-only
IsLinkedToStock
Description:
IsLinkedToStock property returns TRUE if label is linked with some stock or FALSE
if none of the stocks are used.
Syntax:
Property IsLinkedToStock As Boolean
Access Rights:
read-only
IsStoreRecallPrintingAvailable
Description:
If store recall printing is avaliable value of the IsStoreRecallPrintingAvaliable
property is TRUE.
Syntax:
Property IsStoreRecallPrintingAvailable As Boolean
Access Rights:
read-only
IsStoreRecallSupported
Description:
If current printer supports store/recall value of the IsStoreRecallSupported property
is TRUE.
Syntax:
Property IsStoreRecallSupported As Boolean
Access Rights:
read-only
94
ActiveX interface
LabelSettings
Description:
Returns an interface to IlabelSettings class. See more in the Ilabel Chapter.
Syntax:
Property LabelSettings As ILabelSettings
Access Rights:
read-only
LastRevisionID
Description:
Returns the ID of the last revision, which was made to the label.
Syntax:
Property LastRevisionID As Long
Access Rights:
read-only
NewDatabase
Description:
This method creates a new database access on the label.
Syntax:
Function NewDatabase() As Boolean
See also:
DatabaseProperties, DataBases, DeleteDatabases, NewDatabaseWiz,
SelectDatabase
NewDatabaseWiz
Description:
NewDatabaseWiz method opens Database Wizard. In case of success method
returns value TRUE.
95
ActiveX interface
Syntax:
Function NewDatabaseWiz() As Boolean
See also:
DatabaseProperties, DataBases, DeleteDatabases, NewDatabase, SelectDatabase
NewFunction
Description:
This method creates a new function on the label.
Syntax:
Function NewFunction() As Boolean
NewVariable
Description:
This method creates a new variable on the label.
Syntax:
Function NewVariable() As Boolean
See also:
NewVariableWiz, Variables, VariableProperties
NewVariableWiz
Description:
NewVariableWiz method opens Variable Wizard. In case of success method returns
value TRUE.
Syntax:
Function NewVariableWiz() As Boolean
See also:
NewVariable, Variables, VariableProperties
Objects
Description:
Returns the interface to the object list.
Syntax:
96
ActiveX interface
Access Rights:
read-only
See also:
DeleteObjects, ObjectProperties
ObjectProperties
Description:
ObjectProperties method opens a dialog box with properties for the object selected
with ID.
Syntax:
Function ObjectProperties(ID As Long) As Boolean
See also:
Objects, DeleteObject
PrintAndGetJobID
Description:
When printing from Label Gallery user can retrieve an exact status of the print job.
Parameter Quantity : Specifies the quantity that should be used when printing
AdditionalParam: Reserved for future use, must be “
Return Value : Job ID of the print Job.
In case of error, return value can contain the following strings:
“Logging Disabled” - Logging is not enabled, retrieving of ID not possible.
“Print Failed” - Print Job failed to print.
Syntax:
Function PrintAndGetJobID(Quantity As String, AdditionalParams
As String) As String
PrinterName
Description:
PrinterName represents the name of the printer to which label will be printed.
Syntax:
PrinterName As String
See also:
97
ActiveX interface
PrinterPort
Description:
Command PrinterPort allows you to set different printer port than specified in the
label file.
Syntax:
PrinterPort As String
Access Rights:
read-write
See also:
GetPrinterDarknessList, GetPrinterSpeedList, GetPrintParam, PrinterName,
GetPrintParam
PrintType
Description:
Label mode can be obtained by calling PrintType property
O = PRINT_TYPE_NORMAL
1 = PRINT_TYPE_RECALL
Syntax:
PrintType As Long
Access Rights:
read
ResX
Description:
Returns the current printer resolution in horizontal direction. Result is in DPI.
Syntax:
Property ResX As Long
Access Rights:
read-only
98
ActiveX interface
See also:
ResY
ResY
Description:
Returns the current printer resolution in vertical direction. Result is in DPI.
Syntax:
Property ResY As Long
Access Rights:
read-only
See also:
ResX
SelectDatabase
Description:
SelectDatabase method selects a database on the label. In case of success method
returns value TRUE.
Syntax:
Function SelectDatabase(ID As Long) As Boolean
See also:
DatabaseProperties, DataBases, DeleteDatabases, NewDatabase,
NewDatabaseWiz
SelectVariable
Description:
SelectVariable method selects a variable on the label. In case of success method
returns value TRUE.
Syntax:
Function SelectVariable(ID As Long) As Boolean
SetDirty
Description:
With this method you can set the dirty flag of the label document to true, if you do
this
99
ActiveX interface
means that the label has been modifed and the user will be prompted to save the
label
when he will try to close the label
Syntax:
Function SetDirty(flag As Boolean)
SetPrintJobName
Description:
The ILGLabel interface is extended to support setting the PrintJobName for next
print command. The command is defined as:
Parameter JobName must contain the name of the print job. function returns true if
successful.
The parameter set is used only for the first print command. After that it is reset to
use default print job names. Application should set the print job name each time
before executing print commands.
SetPrintParam
Description:
With SetPrintParam function it is possible to set the following printing parameters:
SPEED – Name parameter : PRINTSPEED
DARKNESS – Name parameter : PRINTDARKNESS
PAPERBIN – Name parameter : PAPERBIN
PRINTROTATION – Name parameter : PRINTROTATION
Value : 0 - no rotation
Value : 1 - 180° rotation
The name of the printing parameter should be stored in the function’s Name
parameter and the value of the parameter in the Value parameter. Both parameters
should be represented as a string. If function is able to set the required printing
parameters, the return value will be TRUE otherwise something was wrong and the
return result will be FALSE.
Syntax:
Function SetPrintParam(Name As String, Value As String) As
Boolean
StockName
Description:
100
ActiveX interface
Syntax:
Property StockName As String
Access Rights:
read-only
See also:
StockType
StockType
Description:
Returns the type of the stock, which is used on the label.
Syntax:
Property StockType As String
Access Rights:
read-only
See also:
StockName
SynchronizedPrinting
Description:
This property defines wether the synchronized printing should be used or not. If you
try to set this property to true when the current printer does not support this then the
property will be false and error will be set in NiceLabel.
Syntax:
Property SynchronizedPrinting As Boolean
Variables
Description:
Returns the interface to the variable list for input variables.
Syntax:
Property Variables As IVariableList
Access Rights:
101
ActiveX interface
read-only
See also:
NewVariable, NewVariableWiz, VariableProperties
UpdateVariableData
Description:
UpdateVariableData method change global variable setup.
Syntax:
VariableProperties
Description:
VariableProperties method opens a dialog box with properties for the variable
selected with ID.
Syntax:
Function VariableProperties(ID As Long) As Boolean
See also:
NewVariable, NewVariableWiz, Variables
102
ActiveX interface
Application
Description:
Application method returns an interface to the LGApp.
103
ActiveX interface
Syntax:
Property Application As LGLabel
Access Rights:
read-only
CustomExport
Description:
This method enables label export using custom export definition. Definition has to
be previous defined via Export Print system menu
Syntax:
Function CustomExport(ExportName As String, ExportDir As
String) As Boolean
CurrUnit
Description:
CurrUnit represent the current measurement unit used in the label.
Possible values are:
Value Description
0 Cm
1 Inch
2 Dot
3 Mm
Syntax:
Property CurrUnit As Long
Access Rights:
read-only
104
ActiveX interface
Databases
Description:
Returns the interface to the database list.
Syntax:
Property Databases As IDatabaseList
Access Rights:
read-only
See also:
DatabaseProperties, DeleteDatabase, NewDatabase,
NewDatabaseWiz, SelectDatabase
DatabaseProperties
Description:
DatabaseProperties method opens a dialog box with properties for the database
selected with ID.
Syntax:
Function DatabaseProperties(ID As Long) As Boolean
See also:
Databases, DeleteDatabase, NewDatabase, NewDatabaseWiz,
SelectDatabase
DeleteDatabase
Description:
DeleteDatabase method deletes a database connection from the label. In case of
success method returns value TRUE.
Syntax:
Function DeleteDatabase(ID As Long) As Boolean
Avaliabilty:
Label Gallery Plus only
See also:
Databases, DatabaseProperties, NewDatabase, NewDatabaseWiz,
SelectDatabase
105
ActiveX interface
DeleteFunction
Description:
DeleteFunction method deletes a function from the label. In case of success method
returns value TRUE.
Syntax:
Function DeleteFunction(ID As Long) As Boolean
Avaliabilty:
Label Gallery Plus only
See also:
Functions, FunctionProperties, NewFunction
DeleteObject
Description:
DeleteObject method deletes an object from the label. In case of success method
returns value TRUE.
Syntax:
Function DeleteObject(ID As Long) As Boolean
Avaliabilty:
Label Gallery Plus only
See also:
Objects, ObjectPropeties
DeleteVariable
Description:
DeleteVariable method deletes a variable from the label. In case of success method
returns value TRUE.
Syntax:
Function DeleteVariable(ID As Long) As Boolean
Avaliabilty:
Label Gallery Plus only
See also:
GlobalVariables, NewVariable, SelectVariable, Variables,
VariableProperties, NewVariableWiz
106
ActiveX interface
DownloadVariablesList
Description:
This method is set a list of variables whose value must be set if we wish to call any
export or Store to printer. If this is not done
Syntax:
Function DownloadVariablesList() As IVariableList
Avaliabilty:
Label Gallery Plus only
DownloadToPrinter
Description:
This method store label to printer. It is essential that we set all the variables in the
list using DownloadVariablesList method or method will fail.
Syntax:
Function DownloadToPrinter() As Boolean
Avaliabilty:
Label Gallery Plus only
ExecuteMacro
Description:
This function executes a macro. Macro parameter represents GalleryCommand.
Syntax:
Function ExecuteMacro(Macro As String) As Boolean
ExportToPocket
Description:
Function executes the same action as choosing the command File|Export|Export
to terminal. All the necessary files are created in directory specified in ExportDir
parameter. Function is not supported in DEMO mode.
Syntax:
Function ExportToPocket(ExportDir As String) As Boolean
See also:
107
ActiveX interface
ExportToPrinter
ExportToPrinter
Description:
Use ExportToPrinter function when you want export the label directly to the printer
or to a file. When ExportFile parameter is blank exporting is done directly to the
printer otherwise it is done to the file.
With CreateLVR parameter you are defining whether you want export also the LVR
file, which contains the descriptions of the variables.
The ExportVariant defines how it is exported. This parameter depends on the printer
(Default = 1, other values represent for example: export to RAM, export to Flash,
export to PCMCIA, ...). Function is not supported in DEMO mode.
Syntax:
Function ExportToPrinter(ExportVariant As Long, ExportFile As
String, CreateLVR As Boolean) As Boolean
See also:
ExportToPocket
Functions
Description:
Returns the interface to the function list.
Syntax:
Property Functions As IFunctionList
Access Rights:
read-only
See also:
DeleteFunction, FunctionProperties, NewFunction
FunctionProperties
Description:
FunctionProperties method opens a dialog box with properties for the function
selected with ID.
Syntax:
108
ActiveX interface
See also:
DeleteFunction, Functions, NewFunction
GetDependandFilesList
Description:
GetDependandFilesList function returns you the list of files, which are in use
with opened file.
As ListType you can set , which types of the file you wish to get. Below you
can find all possible ListType parameters:
Returned string is a comma delimited string. This means that in one string
there are names of all files in use. Return result is like this:
Syntax:
Function GetDependandFilesList(FileName As String, Width as
Long,
Height as Long) As Boolean
GetDownloadLocationsList
Description:
Returns available slot names for recall printing. Current printer name of the selected
label is used.
Syntax:
Function GetDownloadLocationsList() As String
GetDownloadLocationsListForPrinter
Description:
109
ActiveX interface
Returns available slot names for recall printing. PrinterName is used as printer
name
Syntax:
Function GetDownloadLocationsListForPrinter(PrinterName As
String) As String
GeneralExport
Description:
Performs export of the current label to the ExportDir folder. Function is not
supported in DEMO mode.
Syntax:
Function GetLabelPreview(ExportDir As String) As Boolean
GetCurrentState
Description:
Use GetCurrentState function when you want to get the state of Label Gallery.
Return result can be of the following:
1 - printing
2 - print preview
0 - other (label design)
This method is especially useful for VBScript actions, where the code can check
current state and do some actions only in certain modes (printing for example)
Syntax:
Function GetCurrentState() As Long
GetLabelPreview
Description:
GetLabelPreview method saves a preview of the label in the file specified with the
FileName. Other two parameters are for defining the size of preview. If file is created
sucessfully return value is TRUE.
The extension of the FileName parameter defines in which format the preview will
be stored. Possible formats are BMP, JPG, PNG and GIF.
Syntax:
110
ActiveX interface
GetLabelPreviewEx
Description:
Use this function to generate the preview of the label. With this function it is possible
to create label previews for the header and tail labels also. Also two sided labels are
supported.
The extension of the FileName parameter defines in which format the preview will
be stored. Possible formats are BMP, JPG, PNG and GIF.
Syntax:
Function GetLabelPreviewEx(FileName As String, Width As Long,
Height As Long, LabelKind As Long, LabelSide As Long,
HasBorder As Boolean) As Boolean
111
ActiveX interface
GetPrintParam
Description:
GetPrintParam function returns the value for provided printing parameter. Possible
values for Name parameter are:
SPEED
Function will return the speed parameter as string value.
DARKNESS
Function will return the darkness parameter as string value.
Syntax:
Function GetPrintParam(Name As String) As String
Explanation of the parameters:
Name
Defines which parameter should be retrieved :
PRINTSPEED – speed parameter as string value
PRINTDARKNESS - darkness parameter as string value
PRINTROTATION - rotation parameter as string value
PRINTDARKNESS1, PRINTDARKNESS2, PRINTDARKNESS3,
PRINTDARKNESS4,
PRINTDARKNESS5 - darkness on specific print head on the
printer with multiple print heads
NUMBER_OF_FRONT_PAGE_COLORS - number of colors for the
specified page side for the printers with multiple print heads
NUMBER_OF_BACK_PAGE_COLORS - number of colors for the
specified page side for the printers with multiple print heads
See also:
Print, PrintePort, PrinterName, SetPrintParam
GetPrintParamEX
Description:
This function retrieve the value of printing parameter.
Explanation of the parameters:
PrinterName
Defines for which printer you want to retrieve the parameter,
blank value means that default printer will be taken.
ParamName
Defines which parameter should be retrieved :
PRINTSPEED – speed parameter as string value
PRINTDARKNESS - darkness parameter as string value
PRINTROTATION - rotation parameter as string value
PRINTDARKNESS1, PRINTDARKNESS2, PRINTDARKNESS3,
PRINTDARKNESS4, PRINTDARKNESS5 - darkness on specific print
head on the printer with multiple print heads
112
ActiveX interface
Syntax:
See also:
GetPrinterSpeedList, GetPrinterSpeedUnit, GetPrintParam, PrinterName,
PrinterPort
GetPrintParamList
Description:
This method returns comma separated list of values/names for specified
ParamName and specified PrinterName and the data you desire
DataType
Parameter is used for parameters PRINTSPEED, PRINTDARKNESS,
PRINTDARKNESS1, PRINTDARKNESS2, PRINTDARKNESS3, PRINTDARKNESS4,
PRINTDARKNESS5 and it means whether you want to retrieve values list
or names list for the specified parameter. Values are actual values
for the speed/darkness while names are string representations for
those items (for example you use names when displaying this data to
user)
113
ActiveX interface
Syntax:
See also:
GetPrinterSpeedList, GetPrinterSpeedUnit, GetPrintParam, PrinterName,
PrinterPort
GlobalVariables
Description:
Returns the interface to the variable list for global variables.
Syntax:
Property GlobalVariables As IVariableList
Access Rights:
read-only
See also:
DeleteVariable, NewVariable, SelectVariable, Variables,
VariableProperties, NewVariableWiz
IsLabelReadOnly
Description:
IsLabelReadOnly property returns TRUE if label is opened in read only mode,
otherwise return value is FALSE.
Syntax:
Property IsLabelReadOnly As Boolean
Access Rights:
read-only
IsLinkedToStock
Description:
IsLinkedToStock property returns TRUE if label is linked with some stock or FALSE
if none of the stocks are used.
Syntax:
114
ActiveX interface
Access Rights:
read-only
IsStoreRecallSupported
Description:
If current printer supports store/recall value of the IsStoreRecallSupported property
is TRUE.
Syntax:
Property IsStoreRecallSupported As Boolean
Access Rights:
read-only
LabelFileName
Description:
LabelFileName represents the name of the label file.
Syntax:
LabelFileName As String
LabelSettings
Description:
Returns an interface to IlabelSettings class. See more in the Ilabel Chapter.
Syntax:
Property LabelSettings As ILabelSettings
Access Rights:
read-only
LastRevisionID
Description:
Returns the ID of the last revision, which was made to the label.
Syntax:
Property LastRevisionID As Long
115
ActiveX interface
Access Rights:
read-only
NewDatabase
Description:
This method creates a new database access on the label.
Syntax:
Function NewDatabase() As Boolean
See also:
Databases, DatabaseProperties, DeleteDatabase, NewDatabaseWiz,
SelectDatabase
NewDatabaseWiz
Description:
NewDatabaseWiz method opens Database Wizard. In case of success method
returns value TRUE.
Syntax:
Function NewDatabaseWiz() As Boolean
See also:
Databases, DatabaseProperties, DeleteDatabase, NewDatabase,
SelectDatabase
NewFunction
Description:
This method creates a new function on the label.
Syntax:
Function NewFunction() As Boolean
See also:
DeleteFunction, Functions, FunctionProperties
NewVariable
Description:
This method creates a new variable on the label.
116
ActiveX interface
Syntax:
Function NewVariable() As Boolean
See also:
DeleteVariable, GlobalVariables, SelectVariable, Variables,
VariableProperties, NewVariableWiz
NewVariableWiz
Description:
NewVariableWiz method opens Variable Wizard. In case of success method returns
value TRUE.
Syntax:
Function NewVariableWiz() As Boolean
See also:
DeleteVariable, GlobalVariables, SelectVariable, Variables,
VariableProperties, NewVariable
Objects
Description:
Returns the interface to the object list.
Syntax:
Property Objects As IObjectList
Access Rights:
read-only
See also:
DeleteObject, ObjectPropeties
ObjectProperties
Description:
ObjectProperties method opens a dialog box with properties for the object selected
with ID.
Syntax:
Function ObjectProperties(ID As Long) As Boolean
See also:
117
ActiveX interface
DeleteObject, Objects
PrintAndGetJobID
Description:
When printing from Label Gallery user can retrieve an exact status of the print job.
Parameter Quantity : Specifies the quantity that should be used when printing
AdditionalParam: Reserved for future use, must be “
Return Value : Job ID of the print Job.
In case of error, return value can contain the following strings:
“Logging Disabled” - Logging is not enabled, retrieving of ID not possible.
“Print Failed” - Print Job failed to print.
Syntax:
Function PrintAndGetJobID(Quantity As String, AdditionalParams As String) As
String
Description:
Print method prints as many labels as selected in Quantity.
The quantity parameter is the print quantity of the labels; it can be a number, or one
of following words:
VARIABLE
UNLIMITED
The first parameter means printing on the base of the variable quantity (one of the
variables sets the quantity), the second one means unlimited printing (printing from
the whole database file for example).
Labels are printed to the printer which is selected in PrinterName property.
If PrintType is:
- Simulate (value = "Simulate") : the whole printing process will be just
simulated. All variable values, functions and database access will be
performed, but no actual printing will be done. This parameter can be used to
perform a printing validation (validation of the data) prior to real printing.
- NormalPrinting (value = " NormalPrinting ") : normal printing is selected.
- RecallPrinting (value = " RecallPrinting ") : recall printing is selected.
If Location is:
- Stopupdate (value = " Stopupdate ") : he contens of the objects stay
unchanged after the print or preview so that the real properties of the object
can be retrieved
.- StoreLocation (value = " StoreLocation=XXX") : XXX is slot name. Avaliable
slot names can be obtained by calling GetDownloadLoactionsList or
GetDownloadLoactionsListForPrinter..
118
ActiveX interface
Syntax:
Function Print(Quantity [, SkipLabels [, Identical [, Sets]]
[, PrintType] [, Location]]As String) As Boolean
See also:
GetPrintParam, PrintePort, PrinterName, SetPrintParam
PrinterName
Description:
PrinterName represents the name of the printer to which label will be printed.
Syntax:
PrinterName As String
See also:
GetPrintParam, Print, PrinterPort, SetPrintParam
PrinterPort
Description:
Command PrinterPort allows you to set different printer port than specified in the
label file.
Syntax:
PrinterPort As String
Access Rights:
read-write
See also:
GetPrintParam, Print, PrinterName, SetPrintParam
PrintType
Description:
Label mode can be obtained by calling PrintType property
O = PRINT_TYPE_NORMAL
1 = PRINT_TYPE_RECALL
Syntax:
PrintType As Long
Access Rights:
119
ActiveX interface
Read
Save
Description:
Save method saves the selected label. Please note that Save command is not
supported in LabelGallery Engine edition of Label Gallery.
Syntax:
Function Save() As Boolean
SelectDatabase
Description:
SelectDatabase method selects a variable on the label. In case of success method
returns value TRUE.
Syntax:
Function SelectDatabase(ID As Long) As Boolean
See also:
Databases, DatabaseProperties, DeleteDatabase, NewDatabase,
NewDatabaseWiz
SelectVariable
Description:
SelectVariable method selects a variable on the label. In case of success method
returns value TRUE.
Syntax:
Function SelectVariable(ID As Long) As Boolean
See also:
DeleteVariable, GlobalVariables, NewVariableWiz, Variables,
VariableProperties, NewVariable
SessionEnd
Description:
The function closes data stream.
Syntax:
Function SessionEnd() As Boolean
120
ActiveX interface
See also:
SessionStart
SessionPrint
SessionPrint
Description:
You send the data stream to printer using this function. You can use multiple
SessionPrint commands one after another and join them in single data stream. The
stream is not closed until the command SessionEnd occurs.
Syntax:
Function SessionPrint(Quantity As String) As Boolean
See also:
SessionStart
SessionEnd
SessionStart
Description:
All three functions (SessionStart, SessionPrint, SessionEnd) are used together. If
ordinary command SessionPrint is used, every time a complete data stream for
printer is sent. If you want to join multiple Print commands into one data stream, you
can use the command SessionStart followed with any number of SessionPrint and
in the end use the command SessionEnd. The stream is not closed until the
command SessionEnd occurs. These commands offer a way of optimal printing
through GalleryCommands and it is not necessary to generate a complete data
stream for each print session.
Syntax:
Function SessionStart() As Boolean
See also:
SessionPrint
SessionEnd
SetPrintJobName
Description:
The ILGLabel interface is extended to support setting the PrintJobName for next
print command. The command is defined as:
121
ActiveX interface
Parameter JobName must contain the name of the print job. function returns true if
successful.
The parameter set is used only for the first print command. After that it is reset to
use default print job names. Application should set the print job name each time
before executing print commands.
Syntax:
SetPrintJobName(JobName As String)
SetPrintParam
Description:
With SetPrintParam function it is possible to set the following printing parameters:
SPEED – Name parameter : PRINTSPEED
DARKNESS – Name parameter : PRINTDARKNESS
PAPERBIN – Name parameter : PAPERBIN
PRINTROTATION – Name parameter : PRINTROTATION
Value : 0 - no rotation
Value : 1 - 180° rotation
The name of the printing parameter should be stored in the function’s Name
parameter and the value of the parameter in the Value parameter. Both parameters
should be represented as a string. If function is able to set the required printing
parameters, the return value will be TRUE otherwise something was wrong and the
return result will be FALSE.
Syntax:
Function SetPrintParam(Name As String, Value As String) As
Boolean
See also:
GetPrintParam, Print, PrinterPort, PrinterName
SetDirty
Description:
With this method you can set the dirty flag of the label document to true, if you do
this
means that the label has been modifed and the user will be prompted to save the
label when he will try to close the label
Syntax:
Function SetDirty(flag As Boolean)
122
ActiveX interface
SetObjectVisible
Description:
With this method you can set object visibility on the label.
When the method succeeds, the return value is true. If it fails, the return value is false. The
reasons for failing can be:
- Object with specified name is not found (Error 1610).
- Object is in error state. If object is found on the label, but it is in error state (not OK or
Phantom), the visible property can not be changed (Error 1611)
Syntax:
Function SetObjectVisible(ObjectName As String, Visible As
Boolean) As Boolean
Parameters:
Objectname
Name of the object, for which the visible property should be changed
Visible
Visible status after the call. If parameter is false, the object will get status Phantom
StockName
Description:
Returns the name of the stock, which is used on the label.
Syntax:
Property StockName As String
Access Rights:
read-only
See also:
StockType
StockType
Description:
Returns the type of the stock, which is used on the label.
Syntax:
Property StockType As String
Access Rights:
read-only
See also:
123
ActiveX interface
StockName
SynchronizedPrinting
Description:
This property defines wether the synchronized printing should be used or not. If you
try to set this property to true when the current printer does not support this then the
property will be false and error will be set in NiceLabel.
Syntax:
Property SynchronizedPrinting As Boolean
Variables
Description:
Returns the interface to the variable list for input variables.
Syntax:
Property Variables As IVariableList
Access Rights:
read-only
See also:
DeleteVariable, GlobalVariables, NewVariableWiz,
SelectVariable, VariableProperties, NewVariable
VariableProperties
Description:
VariableProperties method opens a dialog box with properties for the variable
selected with ID.
Syntax:
Function VariableProperties(ID As Long) As Boolean
See also:
DeleteVariable, GlobalVariables, NewVariableWiz,
SelectVariable, Variables, NewVariable
124
ActiveX interface
Availability Availability
Move 1,2,3 AnchorElementID 1,2,3
Resize 1,2,3 AnchorLevel 1,2,3
SetVariable 1,2,3 AnchorPoint 1,2,3
FormatID 1,2,3
Height 1,2,3
ID 1,2,3
IsLocked 1,2,3
Kind 1,2,3
Left 1,2,3
Name 1,2,3
PageNumber 1,2,3
ResizeFlag 1,2,3
RotateFlag 1,2,3
Rotation 1,2,3
Selected 1,2,3
Status 1,2,3
Top 1,2,3
Variable 1,2,3
Width 1,2,3
ZOrder 1,2,3
AnchorElementID
Description:
Currently not used. Intended to be used, when position of one element can be
dependant on position/size of another element.
Syntax:
AnchorElementID As Long
AnchorLevel
Description:
Currently not used.
Syntax:
AnchorLevel As Long
125
ActiveX interface
AnchorPoint
Description:
Identifies the point of the object, which is fixed on the label. If the object size is
changed, the specified AnchorPoint remains on the same position.
Value Description
0 top left
1 top center
2 top right
3 mid left
4 mid center
5 mid right
6 bottom left
7 bottom center
8 bottom right
Syntax:
AnchorPoint As Long
See also:
Height, Left, Top, Width
FormatID
Description:
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Values Description
0 All
1 Numeric
2 Alphanumeric
3 Letters
4 7 bit
5 Hex
6 Date
126
ActiveX interface
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
Syntax:
FormatID As Long
Height
Description:
Height of the element (in 0.01 mm units).
Syntax:
Property Height As Long
Access Rights:
read-only
See also:
AnchorPoint, Left, Top, Width
ID
Description:
ID of the element
Syntax:
Property ID As Long
IsLocked
Description:
When the element’s position is locked on the label, this property has the value
TRUE
Syntax:
IsLocked As Boolean
Kind
Description:
127
ActiveX interface
Element kind.
Value Description
301 TextObject
302 RectangleObject
303 BitmapObject
304 BarcodeObject
305 LineObject
306 InverseObject
307 OleObject
308 Downloaded Graphic Object
309 ParagraphObject
312 RTFTextObject
313 EllipseObject
Syntax:
Property Kind As Long
Access Rights:
read-only
Left
Description:
Left position of the element (in 0.01 mm units).
Syntax:
Property Left As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Top, Width
Move
Description:
Move the element to the location X, Y
128
ActiveX interface
Syntax:
Move(X As Long, Y As Long)
Name
Description:
Name property represents the name of the object.
Syntax:
Name As String
PageNumber
Description:
The Page index, where the element is located. When Duplex print is used, this index
can have the value 0 (first page) or 1 (second page). When duplex printing is not
enabled, this property is ignored (the value should always be 0).
Syntax:
PageNumber As Long
Access Rights:
read-only
Resize
Description:
Resize the element to the size Width, Height. The element is resized to the closest
size in case, that all sizes are not possible.
Syntax:
Resize(Width As Long, Height As Long)
See also:
ResizeFlag
SetVariable
Description:
Connects the element to the variable with ID. If the return value of the function is –1,
then some error occured during the connection. The best example for this is that
you want connect variable with fixed length to an element which requires different
fixed lenght. (EAN13 barcode). In such case element is not connected to any
variable – it is fixed.
129
ActiveX interface
Syntax:
Function SetVariable(ID As Long) As Long
ResizeFlag
Description:
Flag, which defines, how the object can be resized.
Value Description
0 no resizing
0x88 resizing is possible only in horizontal direction
0x22 resizing is possible only in vertical direction
0x55 resizing is possible only in both directions at the same time
Syntax:
Property ResizeFlag As Long
Access Rights:
read-only
See also:
Resize
RotateFlag
Description:
Flag, which defines, how the object can be rotated.
Possible values are:
Value Description
0 no rotation
0x07 90 degrees rotation
0x02 180 degrees rotation
0xFF 0-360 degrees rotation in steps of 1 degree
Syntax:
Property RotateFlag As Long
130
ActiveX interface
Access Rights:
read-only
See also:
Rotation
Rotation
Description:
Specifies the element’s rotation. When the element can be rotated only in steps of
90 degrees.
Value Description
0 0 deg.
1 90 deg.
2 180 deg.
3 270 deg.
When the element can be rotated in steps of 1 degree, the property has the value
from 0 to 359.
Syntax:
Rotation As Long
See also:
RotateFlag
Selected
Description:
When the element is selected, this property is TRUE.
Syntax:
Selected As Boolean
SetVariable
Description:
With this method you can set an object to be fixed or assign it a variable, if ID is -1
then
131
ActiveX interface
the object will be set to be fixed, if the ID is the ID of the variable on this label then
the
object will use this variable as a data source. If the variable will be successufly set to
this object then the return value will be 0 if not then return value will be -1
Syntax:
Function SetVariable(ID As Long) As Long
Status
Description:
Status of the object.
Value Description
0 OK
1 Error condition
2 Phantom
Syntax:
Property Status As Long
Top
Description:
Top position of the element (in 0.01 mm units).
Syntax:
Property Top As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Left, Width
Variable
Description:
Returns the interface to the variable, which is connected to the OLE object.
132
ActiveX interface
Syntax:
Property Variable As IVar
Access Rights:
read-only
Width
Description:
Width of the element (in 0.01 mm units).
Syntax:
Property Width As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Left, Top
ZOrder
Description:
Value of Z order of the object position. When the Zorder value is the highest, the
element is placed on the top of all others.
Syntax:
ZOrder As Long
Free
Version Properties Version
Availability Availability
Item Count
1,2,3 1,2,3
Count
Description:
Count property returns the number of objects, which are defined on the label.
Syntax:
Property Count As Long
133
ActiveX interface
Access Rights:
read-only
Item
Description:
Returns the interface to the object. Object is selected with Index.
Syntax:
Function Item(Index As Long) As IObject
AnchorElementID
Description:
134
ActiveX interface
Currently not used. Intended to be used, when position of one element can be
dependant on position/size of another element.
Syntax:
AnchorElementID As Long
AnchorLevel
Description:
Currently not used.
Syntax:
AnchorLevel As Long
AnchorPoint
Description:
Identifies the point of the object, which is fixed on the label. If the object size is
changed, the specified AnchorPoint remains on the same position.
Possible values:
Value Description
0 top left
1 top center
2 top right
3 mid left
4 mid center
5 mid right
6 bottom left
7 bottom center
8 bottom right
Syntax:
AnchorPoint As Long
See also:
Height, Left, Top, Width
135
ActiveX interface
FormatID
Description:
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Value Description
0 All
1 Numeric
2 Alphanumeric
3 Letters
4 7 bit
5 Hex
6 Date
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
Syntax:
FormatID As Long
Height
Description:
Height of the element (in 0.01 mm units).
Syntax:
Property Height As Long
Access Rights:
read-only
See also:
AnchorPoint, Left, Top, Width
ID
Description:
ID of the element
136
ActiveX interface
Syntax:
Property ID As Long
Access Rights:
read-only
IsLocked
Description:
When the element’s position is locked on the label, this property has the value
TRUE
Syntax:
IsLocked As Boolean
Kind
Element kind.
Value Description
301 TextObject
302 RectangleObject
303 BitmapObject
304 BarcodeObject
305 LineObject
306 InverseObject
307 OleObject
308 Downloaded Graphic Object
309 ParagraphObject
312 RTFTextObject
313 EllipseObject
Syntax:
Property Kind As Long
Access Rights:
read-only
137
ActiveX interface
Left
Description:
Left position of the element (in 0.01 mm units).
Syntax:
Property Left As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Top, Width
Name
Description:
Name property represents the name of the OLE object.
Syntax:
Name As String
Move
Description:
Move the element to the location X, Y
Syntax:
Move(X As Long, Y As Long)
NumberOfLines
Description:
This property returns the number of lines in text object for the current contents.
Syntax:
NumberOfLines As Long
Access Rights:
read-only
138
ActiveX interface
PageNumber
Description:
The Page index, where the element is located. When Duplex print is used, this index
can have the value 0 (first page) or 1 (second page). When duplex printing is not
enabled, this property is ignored (the value should always be 0).
Syntax:
PageNumber As Long
Resize
Description:
Resize the element to the size Width, Height. The element is resized to the closest
size in case, that all sizes are not possible.
Syntax:
Resize(Width As Long, Height As Long)
See also:
ResizeFlag
ResizeFlag
Description:
Flag, which defines, how the object can be resized.
Value Description
0 no resizing
0x88 resizing is possible only in horizontal direction
0x22 resizing is possible only in vertical direction
0x55 resizing is possible only in both directions at the
same time
Syntax:
Property ResizeFlag As Long
Access Rights:
read-only
139
ActiveX interface
See also:
Resize
RotateFlag
Description:
Flag, which defines, how the object can be rotated.
Possible values are:
Value Description
0 no rotation
0x07 90 degrees rotation
0x02 180 degrees rotation
0xFF 0-360 degrees rotation in steps of 1 degree
Syntax:
Property RotateFlag As Long
Access Rights:
read-only
See also:
Rotation
Rotation
Description:
Specifies the element’s rotation. When the element can be rotated only in steps of
90 degrees.
Value Description
0 0 deg.
1 90 deg.
2 180 deg.
3 270 deg.
When the element can be rotated in steps of 1 degree, the property has the value
from 0 to 359.
140
ActiveX interface
Syntax:
Rotation As Long
See also:
RotateFlag
Selected
Description:
When the element is selected, this property is TRUE.
Syntax:
Selected As Boolean
SetVariable
Description:
Connects the element to the variable with ID. If the return value of the function is –1,
then some error occured during the connection. The best example for this is that
you want connect variable with fixed length to an element which requires different
fixed lenght. (EAN13 barcode). In such case element is not connected to any
variable – it is fixed.
Syntax:
Function SetVariable(ID As Long) As Long
Status
Description:
Status of the object.
Value Description
0 OK
1 Error condition
2 Phantom
Syntax:
Property Status As Long
141
ActiveX interface
Access Rights:
read-only
Top
Description:
Top position of the element (in 0.01 mm units).
Syntax:
Property Top As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Left, Width
Variable
Description:
Returns the interface to the variable, which is connected to the OLE object.
Syntax:
Property Variable As IVar
Access Rights:
read-only
Width
Description:
Width of the element (in 0.01 mm units).
Syntax:
Property Width As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Left, Top
142
ActiveX interface
ZOrder
Description:
Value of Z order of the object position. When the Zorder value is the highest, the
element is placed on the top of all others.
Syntax:
ZOrder As Long
143
ActiveX interface
MinSizeY 1,2,3
Name 1,2,3
PageNumber 1,2,3
PtSizeX 1,2,3
PtSizeY 1,2,3
ResizeFlag 1,2,3
RotateFlag 1,2,3
Rotation 1,2,3
Selected 1,2,3
SpacingX 1,2,3
SpacingY 1,2,3
Status 1,2,3
Top 1,2,3
Variable 1,2,3
Width 1,2,3
ZOrder 1,2,3
AnchorElementID
Description:
Currently not used. Intended to be used, when position of one element can be
dependant on position/size of another element.
Syntax:
AnchorElementID As Long
AnchorLevel
Description:
Currently not used.
Syntax:
AnchorLevel As Long
AnchorPoint
Description:
Identifies the point of the object, which is fixed on the label. If the object size is
changed, the specified AnchorPoint remains on the same position.
144
ActiveX interface
Possible values:
Value Description
0 top left
1 top center
2 top right
3 mid left
4 mid center
5 mid right
6 bottom left
7 bottom center
8 bottom right
Syntax:
AnchorPoint As Long
See also:
Height, Left, Top, Width
BestFit
Description:
This property is TRUE if BestFit option for font resizing is enabled.
Syntax:
BestFit As Boolean
See also:
MaxSizeX, MaxSizeY, MinSizeX, MinSizeY, SpacingX, SpacingY
Color
Description:
With 32-bit value you can specify any RGB color. The color value has the following
hexadecimal form:
0x00bbggrr
The low-order byte (rr) contains a value for the relative intensity of red; the second
byte (gg) contains a value for green; and the third byte (bb) contains a value for
blue. The fourth byte byte must be zero.
145
ActiveX interface
Syntax:
Color As Long
See also:
Fontname, IsBold, IsInverse, IsItalic, PtSizeX, PtSizeY
Contents
Description:
Returns the current contents of the element.
Syntax:
Property Contents As String
Access Rights:
read-only
ContentsMask
Description:
Sets and gets the ContentsMask attribute.
Syntax:
ContentsMask As String
FontName
Description:
FontName property represents the name of the font used within paragraph.
Syntax:
FontName As String
See also:
Color, IsBold, IsInverse, IsItalic, PtSizeX, PtSizeY
FormatID
Description:
146
ActiveX interface
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Value Description
0 All
1 Numeric
2 Alphanumeric
3 Letters
4 7 bit
5 Hex
6 Date
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
Syntax:
FormatID As Long
Height
Description:
Height of the element (in 0.01 mm units).
Syntax:
Property Height As Long
Access Rights:
read-only
See also:
AnchorPoint, Left, Top, Width
ID
Description:
ID of the element
Syntax:
Property ID As Long
147
ActiveX interface
Access Rights:
read-only
IsBold
Description:
When the font for the Paragraph element has enabled Bold property then this
property is TRUE.
Syntax:
IsBold As Boolean
See also:
Color, Fontname, IsInverse, IsItalic, PtSizeX, PtSizeY
IsInverse
Description:
This property is TRUE if Inverse efect is enabled.
Syntax:
IsInverse As Boolean
See also:
Color, Fontname, IsBold, IsItalic, PtSizeX, PtSizeY
IsItalic
Description:
When the font for the Paragraph element has enabled Italic property then this
property is TRUE.
Syntax:
IsItalic As Boolean
See also:
Color, Fontname, IsBold, IsInverse, PtSizeX, PtSizeY
IsMirror
Description:
This property is TRUE if Mirror efect is enabled.
148
ActiveX interface
Syntax:
IsMirror As Boolean
IsStacked
Description:
The property defines if the text is normal or stacked
Syntax:
IsStacked As Boolean
IsStrikeOut
Description:
The property defines if the text is striked out
Syntax:
IsStrikeOut As Boolean
IsUnderLined
Description:
The property defines if the text is underlined
Syntax:
IsUnderlined As Boolean
IsLocked
Description:
When the element’s position is locked on the label, this property has the value
TRUE
Syntax:
IsLocked As Boolean
Justification
Description:
Justification proprety represents how the contents of the text object will be justified.
Possible values are:
149
ActiveX interface
Value Description
0 None
1 Right
2 Left
3 Center
4 Full
Syntax:
Justification As Long
Kind
Element kind.
Value Description
301 TextObject
302 RectangleObject
303 BitmapObject
304 BarcodeObject
305 LineObject
306 InverseObject
307 OleObject
308 Downloaded Graphic Object
309 ParagraphObject
312 RTFTextObject
313 EllipseObject
Syntax:
Property Kind As Long
Access Rights:
read-only
Left
Description:
150
ActiveX interface
Syntax:
Property Left As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Top, Width
MaskCharacter
This property defines the mask character for the contents mask of the text object
Syntax:
MaskCharacter as String
MaxSizeX
MaxSizeX property represents the maximim size of the font size in horizontal
direction which is allowed when BestFit is enabled.
Syntax:
MaxSizeX As Long
See also:
BestFit, MaxSizeY, MinSizeX, MinSizeY, SpacingX, SpacingY
MaxSizeY
MaxSizeY property represents the maximim size of the font size in vertical direction
which is allowed when BestFit is enabled.
Syntax:
MaxSizeY As Long
See also:
BestFit, MaxSizeX, MinSizeX, MinSizeY, SpacingX, SpacingY
MinSizeX
Description:
MinSizeX property represents the minimum size of the font size in horizontal
direction which is allowed when BestFit is enabled.
151
ActiveX interface
Syntax:
MinSizeX As Long
See also:
BestFit, MaxSizeX, MaxSizeY, MinSizeY, SpacingX, SpacingY
MinSizeY
Description
MinSizeY property represents the minimum size of the font size in vertical direction
which is allowed when BestFit is enabled.
Syntax:
MinSizeY As Long
See also:
BestFit, MaxSizeX, MaxSizeY, MinSizeX, SpacingX, SpacingY
Move
Description:
Move the element to the location X, Y
Syntax:
Move(X As Long, Y As Long)
NumberOfLines
Description:
This property returns the number of lines in text object for the current contents.
Syntax:
NumberOfLines As Long
Access Rights:
read-only
Name
Description:
Name property represents the name of the paragraph..
Syntax:
152
ActiveX interface
Name As String
PaheNumber
Description:
The Page index, where the element is located. When Duplex print is used, this index
can have the value 0 (first page) or 1 (second page). When duplex printing is not
enabled, this property is ignored (the value should always be 0).
Syntax:
PageNumber As Long
PtSizeX
Description:
PtSizeX represents font size in horizontal direction. Default size is 0. In this case
default size for selected font is set.
Syntax:
PtSizeX As Long
See also:
Color, Fontname, IsBold, IsItalic, IsInverse, PtSizeY
PtSizeY
Description:
PtSizeY represents vertical font size.
Syntax:
PtSizeY As Long
See also:
Color, Fontname, IsBold, IsItalic, IsInverse, PtSizeX
Resize
Description:
Resize the element to the size Width, Height. The element is resized to the closest
size in case, that all sizes are not possible.
Syntax:
Resize(Width As Long, Height As Long)
153
ActiveX interface
See also:
ResizeFlag
ResizeFlag
Description:
Flag, which defines, how the object can be resized.
Value Description
0 no resizing
0x88 resizing is possible only in horizontal direction
0x22 resizing is possible only in vertical direction
0x55 resizing is possible only in both directions at the same time
Syntax:
Property ResizeFlag As Long
Access Rights:
read-only
See also:
Resize
RotateFlag
Description:
Flag, which defines, how the object can be rotated.
Possible values are:
Value Description
0 no rotation
0x07 90 degrees rotation
0x02 180 degrees rotation
0xFF 0-360 degrees rotation in steps of 1 degree
Syntax:
Property RotateFlag As Long
154
ActiveX interface
Access Rights:
read-only
See also:
Rotation
Rotation
Description:
Specifies the element’s rotation. When the element can be rotated only in steps of
90 degrees.
Value Description
0 0 deg.
1 90 deg.
2 180 deg.
3 270 deg.
When the element can be rotated in steps of 1 degree, the property has the value
from 0 to 359.
Syntax:
Rotation As Long
See also:
RotateFlag
Selected
Description:
When the element is selected, this property is TRUE.
Syntax:
Selected As Boolean
SetContents
Description:
155
ActiveX interface
Syntax:
Function SetContents(Value As String) As Long
SetVariable
Description:
Connects the element to the variable with ID. If the return value of the function is –1,
then some error occured during the connection. The best example for this is that
you want connect variable with fixed length to an element which requires different
fixed lenght. (EAN13 barcode). In such case element is not connected to any
variable – it is fixed.
Syntax:
Function SetVariable(ID As Long) As Long
SpacingX
Description:
With SpacingX property you select spacing between each character.
Syntax:
SpacingX As Long
See also:
BestFit, MaxSizeX, MaxSizeY, MinSizeX, MinSizeY, SpacingY
SpacingY
Description:
With SpacingY property you select spacing between each line.
Syntax:
SpacingY As Long
See also:
BestFit, MaxSizeX, MaxSizeY, MinSizeX, MinSizeY, SpacingX
156
ActiveX interface
Status
Description:
Status of the object.
Value Description
0 OK
1 Error condition
2 Phantom
Syntax:
Property Status As Long
Access Rights:
read-only
Top
Description:
Top position of the element (in 0.01 mm units).
Syntax:
Property Top As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Left, Width
Variable
Description:
Returns the interface to the variable, which is connected to the paragraph.
Syntax:
Property Variable As IVar
Access Rights:
157
ActiveX interface
read-only
Width
Description:
Width of the element (in 0.01 mm units).
Syntax:
Property Width As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Left, Top
ZOrder
Description:
Value of Z order of the object position. When the Zorder value is the highest, the
element is placed on the top of all others.
Syntax:
ZOrder As Long
PageNumber
Item
Description:
Returns the interface to the parameter. Function is selected with Index.
Syntax:
Function Item(Index As Long) As IDBParameter
158
ActiveX interface
Count
Description:
Count property returns the number of parameters (filters) defined for a database.
Syntax:
Property Count As Long
Access Rights:
read-only
Create
Description:
Create method creates a new filter on the existing database access. Input
parameter is a name of the field on which filtering will be executed. Outputi is an
interface to the new created filter.
Syntax:
Function Create(Field As String) As IDBParameter
159
ActiveX interface
PrintAsGraphics 1,2,3
Radius 1,2,3
ResizeFlag 1,2,3
RotateFlag 1,2,3
Rotation 1,2,3
Selected 1,2,3
Status 1,2,3
ThicknessX 1,2,3
ThicknessY 1,2,3
Top 1,2,3
Variable 1,2,3
Width 1,2,3
ZOrder 1,2,3
AnchorElementID
Description:
Currently not used. Intended to be used, when position of one element can be
dependant on position/size of another element.
Syntax:
AnchorElementID As Long
AnchorLevel
Description:
Currently not used.
Syntax:
AnchorLevel As Long
AnchorPoint
Description:
Identifies the point of the object, which is fixed on the label. If the object size is
changed, the specified AnchorPoint remains on the same position.
Possible values:
Value Description
160
ActiveX interface
0 top left
1 top center
2 top right
3 mid left
4 mid center
5 mid right
6 bottom left
7 bottom center
8 bottom right
Syntax:
AnchorPoint As Long
See also:
Height, Left, Top, Width
Color
Description:
With 32-bit value you can specify any RGB color. The color value has the following
hexadecimal form:
0x00bbggrr
The low-order byte (rr) contains a value for the relative intensity of red; the second
byte (gg) contains a value for green; and the third byte (bb) contains a value for
blue. The fourth byte byte must be zero.
Each color parameter can range from 0x0 to 0xFF.
Syntax:
Color As Long
See also:
FillColor, FillStyle, LineStyle, ThicknessX, ThicknessY
FillColor
Description:
With 32-bit value you can specify any RGB color. The color value has the following
hexadecimal form:
161
ActiveX interface
0x00bbggrr
The low-order byte (rr) contains a value for the relative intensity of red; the second
byte (gg) contains a value for green; and the third byte (bb) contains a value for
blue. The fourth byte byte must be zero.
Each color parameter can range from 0x0 to 0xFF.
Syntax:
FillColor As Long
See also:
Color, FillStyle, LineStyle, ThicknessX, ThicknessY
FillStyle
Description:
FillStyle property represents the fill sytle for the rectangle.
Possible values are:
Value Description
0 None
1 Clear
2 Solid
3 Right diagonal
4 Left diagonal
8 Vertical
16 Horizontal
32 Cross
64 Cross diagonal
128 25 % of color
256 50 % of color
512 75 % of color
Syntax:
FillStyle As Long
See also:
Color, FillColor, LineStyle, ThicknessX, ThicknessY
162
ActiveX interface
FormatID
Description:
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Value Description
0 All
1 Numeric
2 Alphanumeric
3 Letters
4 7 bit
5 Hex
6 Date
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
Syntax:
FormatID As Long
Height
Description:
Height of the element (in 0.01 mm units).
Syntax:
Property Height As Long
Access Rights:
read-only
See also:
AnchorPoint, Left, Top, Width
ID
Description:
ID of the element
163
ActiveX interface
Syntax:
Property ID As Long
Access Rights:
read-only
IsLocked
Description:
When the element’s position is locked on the label, this property has the value
TRUE
Syntax:
IsLocked As Boolean
IsRounded
Description:
When this property is set to TRUE, the rectangle be rounded with radius specified in
Radius property.
Syntax:
IsRounded As Boolean
Kind
Value Description
301 TextObject
302 RectangleObject
303 BitmapObject
304 BarcodeObject
305 LineObject
306 InverseObject
307 OleObject
308 Downloaded Graphic Object
309 ParagraphObject
312 RTFTextObject
313 EllipseObject
164
ActiveX interface
Syntax:
Property Kind As Long
Access Rights:
read-only
Left
Description:
Left position of the element (in 0.01 mm units).
Syntax:
Property Left As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Top, Width
LineStyle
Description:
LineStyle property represents the line sytle for the rectangle.
Possible values are:
Value Description
0 None
1 Solid
2 Dash
4 Dot
8 Dash + Dot
16 Datsh + Dot + Dot
32 Clear
Syntax:
LineStyle As Long
See also:
Color, FillColor, FillStyle, ThicknessX, ThicknessY
165
ActiveX interface
Move
Description:
Move the element to the location X, Y
Syntax:
Move(X As Long, Y As Long)
Name
Description:
Name property represents the name of the rectangle.
Syntax:
Name As String
PageNumber
Description:
The Page index, where the element is located. When Duplex print is used, this index
can have the value 0 (first page) or 1 (second page). When duplex printing is not
enabled, this property is ignored (the value should always be 0).
Syntax:
PageNumber As Long
PrintAsGraphics
Description:
When this property is set to TRUE, the rectangle will always be printed as graphics,
even if the printer supports printing it with an internal command.
Syntax:
PrintAsGraphics As Boolean
Radius
Description:
Radius property represents the radius of the rectangle corners.
Syntax:
Radius As Long
166
ActiveX interface
Resize
Description:
Resize the element to the size Width, Height. The element is resized to the closest
size in case, that all sizes are not possible.
Syntax:
Resize(Width As Long, Height As Long)
See also:
ResizeFlag
ResizeFlag
Description:
Flag, which defines, how the object can be resized.
Value Description
0 no resizing
0x88 resizing is possible only in horizontal direction
0x22 resizing is possible only in vertical direction
0x55 resizing is possible only in both directions at the same time
Syntax:
Property ResizeFlag As Long
Access Rights:
read-only
See also:
Resize
RotateFlag
Description:
Flag, which defines, how the object can be rotated.
Possible values are:
Value Description
167
ActiveX interface
0 no rotation
0x07 90 degrees rotation
0x02 180 degrees rotation
0xFF 0-360 degrees rotation in steps of 1 degree
Syntax:
Property RotateFlag As Long
Access Rights:
read-only
See also:
Rotation
Rotation
Description:
Specifies the element’s rotation. When the element can be rotated only in steps of
90 degrees.
Value Description
0 0 deg.
1 90 deg.
2 180 deg.
3 270 deg.
When the element can be rotated in steps of 1 degree, the property has the value
from 0 to 359.
Syntax:
Rotation As Long
See also:
RotateFlag
Selected
Description:
When the element is selected, this property is TRUE.
168
ActiveX interface
Syntax:
Selected As Boolean
Status
Description:
Status of the object.
Value Description
0 OK
1 Error condition
2 Phantom
Syntax:
Property Status As Long
Access Rights:
read-only
ThicknessX
Description:
ThicknessX property represents the thickness of the horizontal
lines of the rectangle.
Syntax:
ThicknessX As Long
See also:
Color, FillColor, FillStyle, LineStyle, ThicknessY
ThicknessY
Description:
ThicknessY property represents the thickness of the vertical lines of the rectangle.
Syntax:
ThicknessY As Long
169
ActiveX interface
See also:
Color, FillColor, FillStyle, LineStyle, ThicknessX
Top
Description:
Top position of the element (in 0.01 mm units).
Syntax:
Property Top As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Left, Width
Variable
Description:
Returns the interface to the variable, which is attached to the element.
Syntax:
Property Variable As IVar
Access Rights:
read-only
Width
Description:
Width of the element (in 0.01 mm units).
Syntax:
Property Width As Long
Access Rights:
read-only
See also:
AnchorPoint, Height, Left, Top
170
ActiveX interface
ZOrder
Description:
Value of Z order of the object position. When the Zorder value is the highest, the
element is placed on the top of all others.
Syntax:
ZOrder As Long
171
ActiveX interface
MaxSizeY 1,2,3
MinSizeX 1,2,3
MinSizeY 1,2,3
Name 1,2,3
PageNumber 1,2,3
PtSizeX 1,2,3
PtSizeY 1,2,3
ResizeFlag 1,2,3
RotateFlag 1,2,3
Rotation 1,2,3
ScaleFactor 1,2,3
Selected 1,2,3
SpacingX 1,2,3
SpacingY 1,2,3
Status 1,2,3
Top 1,2,3
Variable 1,2,3
Width 1,2,3
ZOrder 1,2,3
AnchorElementID
Description:
Currently not used. Intended to be used, when position of one element can be
dependant on position/size of another element.
Syntax:
AnchorElementID As Long
AnchorLevel
Description:
Currently not used.
Syntax:
AnchorLevel As Long
172
ActiveX interface
AnchorPoint
Description:
Identifies the point of the object, which is fixed on the label. If the object size is
changed, the specified AnchorPoint remains on the same position.
Possible values:
Value Description
0 top left
1 top center
2 top right
3 mid left
4 mid center
5 mid right
6 bottom left
7 bottom center
8 bottom right
Syntax:
AnchorPoint As Long
See also:
Width, Height, Left, Top
BestFit
Description:
This property is TRUE if BestFit option for font resizing is enabled.
Syntax:
BestFit As Boolean
Color
Description:
With 32-bit value you can specify any RGB color. The color value has the following
hexadecimal form:
0x00bbggrr
173
ActiveX interface
The low-order byte (rr) contains a value for the relative intensity of red; the second
byte (gg) contains a value for green; and the third byte (bb) contains a value for
blue. The fourth byte byte must be zero.
Each color parameter can range from 0x0 to 0xFF.
Syntax:
Color As Long
Contents
Description:
Returns the current contents of the element.
Syntax:
Property Contents As String
Access Rights:
read-only
ContentsMask
Description:
Sets and gets the ContentsMask attribute.
Syntax:
ContentsMask As String
FontName
Description:
FontName property represents the name of the font used within paragraph.
Syntax:
FontName As String
FormatID
Description:
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Value Description
174
ActiveX interface
0 All
1 Numeric
2 Alphanumeric
3 Letters
4 7 bit
5 Hex
6 Date
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
Syntax:
FormatID As Long
Height
Description:
Height of the element (in 0.01 mm units).
Syntax:
Property Height As Long
Access Rights:
read-only
See also:
Width, AnchorPoint, Left, Top
ID
Description:
ID of the element
Syntax:
Property ID As Long
Access Rights:
read-only
175
ActiveX interface
IsBold
Description:
When the font for the Paragraph element has enabled Bold property then this
property is TRUE.
Syntax:
IsBold As Boolean
IsInverse
Description:
This property is TRUE if Inverse efect is enabled.
Syntax:
IsInverse As Boolean
IsItalic
Description:
When the font for the Paragraph element has enabled Italic property then this
property is TRUE.
Syntax:
IsItalic As Boolean
IsLocked
Description:
When the element’s position is locked on the label, this property has the value
TRUE
Syntax:
IsLocked As Boolean
IsMirror
Description:
This property is TRUE if Mirror efect is enabled.
Syntax:
IsMirror As Boolean
176
ActiveX interface
IsStacked
Description:
The property defines if the text is normal or stacked
Syntax:
IsStacked As Boolean
IsStrikeOut
Description:
The property defines if the text is striked out
Syntax:
IsStrikeOut As Boolean
IsUnderLined
Description:
The property defines if the text is underlined
Syntax:
IsUnderlined As Boolean
Justification
Description:
Justification proprety represents how the contents of the text object will be justified.
Possible values are:
Value Description
0 None
1 Right
2 Left
3 Center
4 Full
Syntax:
Justification As Long
177
ActiveX interface
Kind
Element kind.
Value Description
301 TextObject
302 RectangleObject
303 BitmapObject
304 BarcodeObject
305 LineObject
306 InverseObject
307 OleObject
308 Downloaded Graphic Object
309 ParagraphObject
312 RTFTextObject
313 EllipseObject
Syntax:
Property Kind As Long
Access Rights:
read-only
Left
Description:
Left position of the element (in 0.01 mm units).
Syntax:
Property Left As Long
Access Rights:
read-only
See also:
Width, AnchorPoint, Hight, Top
MaskCharacter
This property defines the mask character for the contents mask of the text object
178
ActiveX interface
Syntax:
MaskCharacter as String
MaxSizeX
MaxSizeX property represents the maximim size of the font size in horizontal
direction which is allowed when BestFit is enabled.
Syntax:
MaxSizeX As Long
See also:
BestFit, MaxSizeY, MinSizeX, MinSizeY, SpacingX, SpacingY
MaxSizeY
MaxSizeY property represents the maximim size of the font size in vertical direction
which is allowed when BestFit is enabled.
Syntax:
MaxSizeY As Long
See also:
BestFit, MaxSizeX, MinSizeX, MinSizeY, SpacingX, SpacingY
MinSizeX
Description:
MinSizeX property represents the minimum size of the font size in horizontal
direction which is allowed when BestFit is enabled.
Syntax:
MinSizeX As Long
See also:
BestFit, MaxSizeX, MaxSizeY, MinSizeY, SpacingX, SpacingY
MinSizeY
Description
MinSizeY property represents the minimum size of the font size in vertical direction
which is allowed when BestFit is enabled.
Syntax:
MinSizeY As Long
179
ActiveX interface
See also:
BestFit, MaxSizeX, MaxSizeY, MinSizeX, SpacingX, SpacingY
Move
Description:
Move the element to the location X, Y
Syntax:
Move(X As Long, Y As Long)
Name
Description:
Name property represents the name of the RTF text.
Syntax:
Name As String
PageNumber
Description:
The Page index, where the element is located. When Duplex print is used, this index
can have the value 0 (first page) or 1 (second page). When duplex printing is not
enabled, this property is ignored (the value should always be 0).
Syntax:
PageNumber As Long
PtSizeX
Description:
PtSizeX represents font size in horizontal direction. Default size is 0. In this case
default size for selected font is set.
Syntax:
PtSizeX As Long
See also:
Color, Fontname, IsBold, IsItalic, IsInverse, PtSizeY
180
ActiveX interface
PtSizeY
Description:
PtSizeY represents vertical font size.
Syntax:
PtSizeY As Long
See also:
Color, Fontname, IsBold, IsItalic, IsInverse, PtSizeX
Resize
Description:
Resize the element to the size Width, Height. The element is resized to the closest
size in case, that all sizes are not possible.
Syntax:
Resize(Width As Long, Height As Long)
See also:
ResizeFlag
ResizeFlag
Description:
Flag, which defines, how the object can be resized.
Value Description
0 no resizing
0x88 resizing is possible only in horizontal direction
0x22 resizing is possible only in vertical direction
0x55 resizing is possible only in both directions at the same time
Syntax:
Property ResizeFlag As Long
Access Rights:
read-only
181
ActiveX interface
See also:
Resize
RotateFlag
Description:
Flag, which defines, how the object can be rotated.
Possible values are:
Value Description
0 no rotation
0x07 90 degrees rotation
0x02 180 degrees rotation
0xFF 0-360 degrees rotation in steps of 1 degree
Syntax:
Property RotateFlag As Long
Access Rights:
read-only
See also:
Rotation
Rotation
Description:
Specifies the element’s rotation. When the element can be rotated only in steps of
90 degrees.
Value Description
0 0 deg.
1 90 deg.
2 180 deg.
3 270 deg.
When the element can be rotated in steps of 1 degree, the property has the value
from 0 to 359.
182
ActiveX interface
Syntax:
Rotation As Long
See also:
RotateFlag
Selected
Description:
When the element is selected, this property is TRUE.
Syntax:
Selected As Boolean
SetContents
Description:
When the contents of an element should be changed, SetContents method should
be called. In case of success (the Value is valid for the element), the function
returns 0. In case of an error, the function returns –1.
Syntax:
Function SetContents(Value As String) As Long
SetVariable
Description:
Connects the element to the variable with ID. If the return value of the function is –1,
then some error occured during the connection. The best example for this is that
you want connect variable with fixed length to an element which requires different
fixed lenght. (EAN13 barcode). In such case element is not connected to any
variable – it is fixed.
Syntax:
Function SetVariable(ID As Long) As Long
SpacingX
Description:
With SpacingX property you select spacing between each character.
Syntax:
SpacingX As Long
183
ActiveX interface
See also:
BestFit, MaxSizeX, MaxSizeY, MinSizeX, MinSizeY, SpacingY
SpacingY
Description:
With SpacingY property you select spacing between each line.
Syntax:
SpacingY As Long
See also:
BestFit, MaxSizeX, MaxSizeY, MinSizeX, MinSizeY, SpacingX
Status
Description:
Status of the object.
Value Description
0 OK
1 Error condition
2 Phantom
Syntax:
Property Status As Long
Access Rights:
read-only
Top
Description:
Top position of the element (in 0.01 mm units).
Syntax:
Property Top As Long
Access Rights:
184
ActiveX interface
read-only
See also:
Width, AnchorPoint, Left, Height
Variable
Description:
Returns the interface to the variable, which is attached to the element.
Syntax:
Property Variable As IVar
Access Rights:
read-only
Width
Description:
Width of the element (in 0.01 mm units).
Syntax:
Property Width As Long
Access Rights:
read-only
See also:
Top, AnchorPoint, Left, Height
ZOrder
Description:
Value of Z order of the object position. When the Zorder value is the highest, the
element is placed on the top of all others.
Syntax:
ZOrder As Long
185
ActiveX interface
186
ActiveX interface
ResizeFlag 1,2,3
RotateFlag 1,2,3
Rotation 1,2,3
ScaleFactor 1,2,3
Selected 1,2,3
SpacingX 1,2,3
SpacingY 1,2,3
Status 1,2,3
Top 1,2,3
Variable 1,2,3
Width 1,2,3
ZOrder 1,2,3
AnchorElementID
Description:
Currently not used. Intended to be used, when position of one element can be
dependant on position/size of another element.
Syntax:
AnchorElementID As Long
AnchorLevel
Description:
Currently not used.
Syntax:
AnchorLevel As Long
AnchorPoint
Description:
Identifies the point of the object, which is fixed on the label. If the object size is
changed, the specified AnchorPoint remains on the same position.
Possible values:
Value Description
0 top left
187
ActiveX interface
1 top center
2 top right
3 mid left
4 mid center
5 mid right
6 bottom left
7 bottom center
8 bottom right
Syntax:
AnchorPoint As Long
See also:
Top, Hight, Left, Height
BestFit
Description:
This property is TRUE if BestFit option for font resizing is enabled.
Syntax:
BestFit As Boolean
See also:
MaxSizeX, MaxSizeY, MinSizeX, MinSizeY, SpacingX, SpacingY
CharSet
Description:
This property sets character set for text element and selected font.
Possible values are:
Language CharSet
Chinese (Trad.) 136
Croatian 238
Czech 238
Danish 0
Dutch 0
English 0
188
ActiveX interface
Finnish 0
French 0
German 0
Greek 161
Hebrew 177
Hungarian 238
Italian 0
Lithuanian 186
Polish 238
Russian 204
Serbian 238
Slovak 238
Slovene 238
Spanish 0
Swedish 0
Turkish 162
Chinese (Simpl.) 134
Japanese 128
Thai 222
Portuguese 0
Ukrainian 204
Norwegian 0
Syntax:
Property CharSet As Long
Access Rights:
read-write
Color
Description:
With 32-bit value you can specify any RGB color. The color value has the following
hexadecimal form:
0x00bbggrr
189
ActiveX interface
The low-order byte (rr) contains a value for the relative intensity of red; the second
byte (gg) contains a value for green; and the third byte (bb) contains a value for
blue. The fourth byte byte must be zero.
Each color parameter can range from 0x0 to 0xFF.
Syntax:
Color As Long
See also:
FontName, IsBold, IsInverse, IsItalic, IsMirror, IsRTL,
SpacingX, SpacingY, PtSizeX, PtSizeY
Contents
Description:
Returns the current contents of the element.
Syntax:
Property Contents As String
Access Rights:
read-only
ContentsMask
Description:
Sets and gets the ContentsMask attribute.
Syntax:
ContentsMask As String
FontName
Description:
FontName property represents the name of the font used within paragraph.
Syntax:
FontName As String
See also:
Color, IsBold, IsInverse, IsItalic,IsMirror, IsRTL, SpacingX,
SpacingY, PtSizeX, PtSizeY
190
ActiveX interface
FormatID
Description:
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Value Description
0 All
1 Numeric
2 Alphanumeric
3 Letters
4 7 bit
5 Hex
6 Date
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
Syntax:
FormatID As Long
Height
Description:
Height of the element (in 0.01 mm units).
Syntax:
Property Height As Long
Access Rights:
read-only
See also:
Top, AnchorPoint, Left, Width
ID
Description:
ID of the element
191
ActiveX interface
Syntax:
Property ID As Long
Access Rights:
read-only
IsBold
Description:
When the font for the Paragraph element has enabled Bold property then this
property is TRUE.
Syntax:
IsBold As Boolean
See also:
Color, FontName, IsInverse, IsItalic, IsMirror, IsRTL,
SpacingX, SpacingY, PtSizeX, PtSizeY
IsInverse
Description:
This property is TRUE if Inverse efect is enabled.
Syntax:
IsInverse As Boolean
See also:
Color, FontName, IsBold, IsItalic, IsMirror, IsRTL, SpacingX,
SpacingY, PtSizeX, PtSizeY
IsItalic
Description:
When the font for the Paragraph element has enabled Italic property then this
property is TRUE.
Syntax:
IsItalic As Boolean
See also:
Color, FontName, IsBold, IsInverse, IsMirror, IsRTL, SpacingX,
SpacingY, PtSizeX, PtSizeY
192
ActiveX interface
IsLocked
Description:
When the element’s position is locked on the label, this property has the value
TRUE
Syntax:
IsLocked As Boolean
IsMirror
Description:
This property is TRUE if Mirror efect is enabled.
Syntax:
IsMirror As Boolean
See also:
Color, FontName, IsBold, IsInverse, IsItalic, IsRTL, SpacingX,
SpacingY, PtSizeX, PtSizeY
IsRTL
Description:
The client application can check the possibility to set this property by setting it to
another value. If the property value (after reading) still has the old value, this means
it can not be set. In this case the user interface involved can be disabled.
Syntax:
Property IsRTL As Boolean
See also:
Color, FontName, IsBold, IsInverse, IsItalic, IsMirror,
SpacingX, SpacingY, PtSizeX, PtSizeY
IsStacked
Description:
Sets and gets the “Stacked text” attribute.
Syntax:
Property IsStacked As Boolean
193
ActiveX interface
Justification
Description:
Justification proprety represents how the contents of the text object will be justified.
Possible values are:
Value Description
0 None
1 Right
2 Left
3 Center
4 Full
Syntax:
Justification As Long
Kind
Element kind.
Value Description
301 TextObject
302 RectangleObject
303 BitmapObject
304 BarcodeObject
305 LineObject
306 InverseObject
307 OleObject
308 Downloaded Graphic Object
309 ParagraphObject
312 RTFTextObject
313 EllipseObject
194
ActiveX interface
Syntax:
Property Kind As Long
Access Rights:
read-only
Left
Description:
Left position of the element (in 0.01 mm units).
Syntax:
Property Left As Long
Access Rights:
read-only
See also:
Top, AnchorPoint, Width, Height
MaskCharacter
Description:
With MaskCharacter you can define the mask character for the Text object.
Syntax:
MaskCharacter As String
Move
Description:
Move the element to the location X, Y
Syntax:
Move(X As Long, Y As Long)
Name
Description:
Name property represents the name of the RTF text.
Syntax:
Name As String
195
ActiveX interface
Selected
PageNumber
Description:
The Page index, where the element is located. When Duplex print is used, this index
can have the value 0 (first page) or 1 (second page). When duplex printing is not
enabled, this property is ignored (the value should always be 0).
Syntax:
PageNumber As Long
PtSizeX
Description:
PtSizeX represents font size in horizontal direction. Default size is 0. In this case
default size for selected font is set.
Syntax:
PtSizeX As Long
See also:
Color, FontName, IsBold, IsInverse, IsItalic, IsMirror,
SpacingX, SpacingY, IsRTL, PtSizeY
PtSizeY
Description:
PtSizeY represents vertical font size.
Syntax:
PtSizeY As Long
See also:
Color, FontName, IsBold, IsInverse, IsItalic, IsMirror,
SpacingX, SpacingY, IsRTL, PtSizeX
Resize
Description:
Resize the element to the size Width, Height. The element is resized to the closest
size in case, that all sizes are not possible.
Syntax:
196
ActiveX interface
See also:
ResizeFlag
ResizeFlag
Description:
Flag, which defines, how the object can be resized.
Value Description
0 no resizing
0x88 resizing is possible only in horizontal direction
0x22 resizing is possible only in vertical direction
0x55 resizing is possible only in both directions at the same time
Syntax:
Property ResizeFlag As Long
Access Rights:
read-only
See also:
Resize
RotateFlag
Description:
Flag, which defines, how the object can be rotated.
Possible values are:
Value Description
0 no rotation
0x07 90 degrees rotation
0x02 180 degrees rotation
0xFF 0-360 degrees rotation in steps of 1 degree
197
ActiveX interface
Syntax:
Property RotateFlag As Long
Access Rights:
read-only
See also:
Rotation
Rotation
Description:
Specifies the element’s rotation. When the element can be rotated only in steps of
90 degrees.
Value Description
0 0 deg.
1 90 deg.
2 180 deg.
3 270 deg.
When the element can be rotated in steps of 1 degree, the property has the value
from 0 to 359.
Syntax:
Rotation As Long
See also:
RotateFlag
ScaleFactor
Description:
Sets an gets the Scaling factor. Setting this property does not always result
in a change - depends on the font type
Syntax:
ScaleFactor As Long
198
ActiveX interface
Selected
Description:
When the element is selected, this property is TRUE.
Syntax:
Selected As Boolean
SetContents
Description:
When the contents of an element should be changed, SetContents method should
be called. In case of success (the Value is valid for the element), the function
returns 0. In case of an error, the function returns –1.
Syntax:
Function SetContents(Value As String) As Long
SetVariable
Description:
Connects the element to the variable with ID. If the return value of the function is –1,
then some error occured during the connection. The best example for this is that
you want connect variable with fixed length to an element which requires different
fixed lenght. (EAN13 barcode). In such case element is not connected to any
variable – it is fixed.
Syntax:
Function SetVariable(ID As Long) As Long
SpacingX
Description:
With SpacingX property you select spacing between each character.
Syntax:
SpacingX As Long
See also:
Color, FontName, IsBold, IsInverse, IsItalic, IsMirror,
PtSizeY, SpacingY, IsRTL, PtSizeX
199
ActiveX interface
SpacingY
Description:
With SpacingY property you select spacing between each line.
Syntax:
SpacingY As Long
See also:
Color, FontName, IsBold, IsInverse, IsItalic, IsMirror,
PtSizeY, SpacingX, IsRTL, PtSizeX
Status
Description:
Status of the object.
Value Description
0 OK
1 Error condition
2 Phantom
Syntax:
Property Status As Long
Access Rights:
read-only
Top
Description:
Top position of the element (in 0.01 mm units).
Syntax:
Property Top As Long
Access Rights:
read-only
200
ActiveX interface
See also:
Width, AnchorPoint, Left, Height
Variable
Description:
Returns the interface to the variable, which is connected to the text.
Syntax:
Property Variable As IVar
Access Rights:
read-only
Width
Description:
Width of the element (in 0.01 mm units).
Syntax:
Property Width As Long
Access Rights:
read-only
See also:
Top, AnchorPoint, Left, Height
ZOrder
Description:
Value of Z order of the object position. When the Zorder value is the highest, the
element is placed on the top of all others.
Syntax:
ZOrder As Long
201
ActiveX interface
Availability Availability
DependsOnFunction 1,2,3 AutoTrim 2,3
GetPureValue 2,3 BreakLines 1,2,3
GetValue 1,2,3 Default 1,2,3
SetValue 1,2,3 DefaultValue 1,2,3
ShouldTraceNow 1,2,3 DefType 1,2,3
Undefine 1,2,3 Description 1,2,3
DynamicValue 1,2,3
FixedLength 1,2,3
FormatID 1,2,3
HasMaxValue 1,2,3
HasMinValue 1,2,3
ID 1,2,3
IncrementCount 1,2,3
IncrementKind 1,2,3
IncrementStep 1,2,3
IncrementStep2 1,2,3
IncrementStep3 1,2,3
IncrementType 1,2,3
InputPicture 1,2,3
IsBasedOnQuantity 1,2,3
IsDisabled 1,2,3
IsInternal 1,2,3
IsMultiLine 1,2,3
IsUsed 1,2,3
IsVarQuantity 1,2,3
JustificationType 1,2,3
Length 1,2,3
LineCount 1,2,3
LineLength 1,2,3
MaxValue 1,2,3
MinValue 1,2,3
Name 1,2,3
OutputPicture 1,2,3
PadCharacter 1,2,3
PickList 1,2,3
PictureType 1,2,3
202
ActiveX interface
Prefix 1,2,3
Prompt 1,2,3
PromptCount 1,2,3
PromptOrder 1,2,3
RollOver 1,2,3
StrictChecking 1,2,3
Suffix 1,2,3
Tag 2,3
TraceOn 1,2,3
ValueRequired 1,2,3
VarType 1,2,3
WordWrap 1,2,3
AutoTrim
Description:
AutoTrim property defines the behaviour of SetContents function of IVar interface.
When AutoTrim is TRUE the value assinged to the variable is first trimmed to the
length of the variable - this prevents errors when the provided value is too long.
Default value is false.
Syntax:
Propery AutoTrim As Boolean
BreakLines
Description:
If variable has BreakLines option enabled then value of the WordWrap property is
TRUE.
Syntax:
BreakLines As Boolean
Default
Description:
Default method returns the current value of the variable.
Syntax:
Property Default As String
203
ActiveX interface
Access Rights:
read-only
DefaultValue
Description:
In DefaultValue property is stored a default value for the variable.
Syntax:
DefaultValue As String
See also:
DynamicValue, FixedLenght, IsBasedonQuantity, ValueRequired
DefType
Description:
DefType property represents the case on which default value for the variable will be
selected.
Value Description
0 None – No default value
1 Prompt – You are prompted for default value
2 No prompt – Default value is stored in Default value property
Syntax:
DefType As Long
DependsOnFunction
Description:
DependsOnFunction method is used for checking if variable is dependet of the
function. For input parameter is used function ID. In case that variable is dependet
of the function then return value is TRUE.
Syntax:
Function DependsOnFunction(FunctionID As Long) As Boolean
204
ActiveX interface
Description
Description:
Description property represents the description of the variable.
Syntax:
Description As String
DynamicValue
Description:
DynamicValue has value TRUE, if "Dynamic value" option for default value is
enabled.
Syntax:
DynamicValue As Boolean
See also:
DefaultValue, FixedLenght, IsBasedonQuantity, ValueRequired
FixedLength
Description:
If variable has fixed lenght then FixedLength property has value TRUE.
Syntax:
FixedLength As Boolean
See also:
DefaultValue, DynamicValue, IsBasedonQuantity, ValueRequired
FormatID
Description:
This is the ID of a contents format, which specifies the character set, which is
allowed to be used for the element.
The following IDs are valid:
Value Description
0 All
1 Numeric
2 Alphanumeric
205
ActiveX interface
3 Letters
4 7 bit
5 Hex
6 Date
7 Time
Details about the characters in each format can be found in formats.def file, located
on BIN\SYSTEM directory.
Syntax:
FormatID As Long
GetPureValue
Description:
This function returns a pure value of the variable without any prefix or suffix in case
they are defined.
Syntax:
Function GetPureValue() As String
See also:
GetValue, SetValue
GetValue
Description:
GetValue method returns the current value of the variable.
Syntax:
Function GetValue() As String
See also:
GetPureValue, SetValue
HasMaxValue
Description:
HasMaxValue property has value TRUE, if range check option Max value is
enabled.
206
ActiveX interface
Syntax:
HasMaxValue As Boolean
See also:
HasMinValue, MaxValue, MinValue, RollOver
HasMinValue
Description:
HasMinValue property has value TRUE, if range check option Min value is enabled.
Syntax:
HasMinValue As Boolean
See also:
HasMaxValue, MaxValue, MinValue, RollOver
ID
Description:
ID of the element
Syntax:
Property ID As Long
Access Rights:
read-only
IncrementCount
Description:
IncrementCount property represents the number on how many printed labels
counter will be incremented.
Syntax:
IncrementCount As Long
See also:
IncrementKind, IncrementStep, IncrementStep2, IncrementStep3,
IncrementType
207
ActiveX interface
IncrementKind
Description:
IncrementKind property represents the kind of the increment. Increment can be
performed on several types of variables.
Possible values are:
Value Description
0 Integer
1 Date
2 Time
Syntax:
Property IncrementKind As Long
Access Rights:
read-only
See also:
IncrementCount, IncrementStep, IncrementStep2, IncrementStep3,
IncrementType
IncrementStep
Description:
IncrementStep property represents the step of the increment.
Please Note:
Incrementing depends on the type of the variable. If variable type is Integer then
only IncrementStep property is used. For all other types such as Time or Date there
are IncrementStep2 and IncrementStep3. In each of them there is only one number.
Date:
Days are stored in IncrementStep
Months are stored in IncrementStep2
Years are stored in IncrementStep3
Time:
Hours are stored in IncrementStep
Minutes are stored in IncrementStep2
Seconds are stored in IncrementStep3
208
ActiveX interface
Syntax:
IncrementStep As Long
See also:
IncrementCount, IncrementKind, IncrementStep2, IncrementStep3,
IncrementType
IncrementStep2
Description:
See IncrementStep
Syntax:
IncrementStep2 As Long
See also:
IncrementCount, IncrementKind, IncrementStep, IncrementStep3,
IncrementType
IncrementStep3
Description:
See IncrementStep
Syntax:
IncrementStep3 As Long
See also:
IncrementCount, IncrementKind, IncrementStep, IncrementStep2,
IncrementType
IncrementType
Description:
IncrementType property represents the type of incrementation.
Value Description
0 None
1 Increment
209
ActiveX interface
2 Decrement
3 Offset
Syntax:
Property IncrementType As Long
Access Rights:
read-only
See also:
IncrementCount, IncrementKind, IncrementStep, IncrementStep2,
IncrementStep3
InputPicture
Description:
InputPicture property is represents a string (Input format), which can be set in
Variable dialog box under Format tab. Each type of variable has it's own possibilites
for input pictures.
Syntax:
InputPicture As String
IsBasedOnQuantity
Description:
IsBasedOnQuantity property has value TRUE, if "Based on var. quantity" is enabled.
Syntax:
IsBasedOnQuantity As Boolean
See also:
DefaultValue, DynamicValue, FixedLenght, ValueRequired
IsDisabled
Description:
This property sets (or gets) the variables “disabled” attribute. When this attribute is
set, the variable is not shown in the variables selection lists.
Syntax:
210
ActiveX interface
IsInternal
Description:
ReadOnly property, which tells the client if this is an internal variable – the variable,
which gets the value from the system rather than from the label data.
Syntax:
Property IsInternal As Boolean
Access Rights:
read-only
IsMultiLine
Description:
If variable has MultiLine option enabled then value of the IsMultiLine property is
TRUE.
Syntax:
IsMultiLine As Boolean
See also:
IsVarQuantity, Length, PickList
IsUsed
Description:
IsUsed has value TRUE, if variable is connected with an element on the label. In the
other case IsUsed has value FALSE.
Syntax:
property IsUsed As Boolean
Access Rights:
read-only
IsVarQuantity
Description:
IsVarQuantity property has value TRUE, if "Treat as variable quantity" is enabled.
Syntax:
211
ActiveX interface
IsVarQuantity As Boolean
See also:
IsMultiLine, Length, PickList
JustificationType
Description:
JustificationType proprety represents how the contents of the variable will be
justified.
Possible values are:
Value Description
0 None
1 Right
2 Left
3 Center
4 Full
Syntax:
JustificationType As Long
Length
Description:
Lenght propery represents the lenght of the variable. Length can have value
between 1 and 4096.
Syntax:
Length As Long
See also:
IsMultiLine, IsVarQuantity, PickList
LineCount
Description:
LineCount property represents the number of lines in one variable. LineCount can
have value between 1 and 100.
212
ActiveX interface
Syntax:
LineCount As Long
LineLength
Description:
LineLength property represents the lenght of the one line. LineLength can have
value between 1 and 4096.
Syntax:
LineLength As Long
MaxValue
Description:
MaxValue represents the minimal value for rangechecking.
Syntax:
MaxValue As String
See also:
HasMaxValue, HasMinValue, MinValue, RollOver
MinValue
Description:
MinValue represents the minimal value for rangechecking.
Syntax:
MinValue As String
See also:
HasMaxValue, HasMinValue, MaxValue, RollOver
Name
Description:
Name property represents the name of the variable. Name can be only 12
characters long.
Syntax:
Name As String
213
ActiveX interface
OutputPicture
Description:
OutputPicture property is represents a string (Output format), which can be set in
Variable dialog box under Format tab. Each type of variable has it's own possibilites
for output pictures.
Syntax:
OutputPicture As String
PadCharacter
Description:
PadCharacter property represents the PadCharacter of the variable.
Syntax:
PadCharacter As String
See also:
Prefix, Suffix
PickList
Description:
This property retrieves the pick list for the current variable.
Syntax:
Property PickList As String
Access Rights:
read-only
See also:
IsMultiLine, IsVarQuantity, Length
PictureType
Description:
Picture type property represents, which picture for the variable is selected.
Possible values are:
Value Description
0 None
214
ActiveX interface
1 Date
2 Time
3 Floating point
4 Money
5 List
6 Binary
Syntax:
PictureType As Long
Prefix
Description:
Prefix property represents the prefix of the variable.
Syntax:
Prefix As String
See also:
PadCharacter, Suffix
Prompt
Description:
In Prompt property is stored a prompt string.
Syntax:
Prompt As String
PromptCount
Description:
PromptCount property represents the number on how many printed labels it will be
prompted.
Syntax:
PromptCount As Long
PromptOrder
Description:
215
ActiveX interface
ReadWrite property, with which you can get or set the prompt order of the variable.
Syntax:
Property PromptOrder As Integer
Access Rights:
read-write
RollOver
Description:
RollOver has value TRUE, if "RollOver" option is enabled.
Syntax:
RollOver As Boolean
See also:
HasMaxValue, HasMinValue, MaxValue, MinValue
SetValue
Description:
SetValue method is used for setting the value for the variable.
Syntax:
Function SetValue(Value As String) As Long
See also:
GetPureValue, GetValue
ShouldTraceNow
Description:
In case that you want save value of the variable to the log file you should use
ShouldTraceNow method.
Syntax:
Function ShouldTraceNow(bStart As Boolean) As Boolean
StrictChecking
Description:
216
ActiveX interface
StrictChecking property has value TRUE, if strict checking flag is enabled. Strict
checking flag prevents to connect a variable, with different length that is required by
element, to an element.
Syntax:
StrictChecking As Boolean
Suffix
Description:
Suffix property represents the suffix of the variable.
Syntax:
Suffix As String
See also:
PadCharacter, Prefix
Tag
Description:
Tag property is a simple integer property, that the client application can use for any
kind of internal processing.
Syntax:
Propery Tag As Long
TraceOn
Description:
TraceOn has value TRUE, if variable tracing is enabled.
Syntax:
TraceOn As Boolean
Undefine
Description:
Sets the InputType back to original. Intended Use:
217
ActiveX interface
When one database variable is set, its value is never read again from the database
until the label is closed. With the Undefine call, the variable gets “original state”. This
means that its value will be retrieved from the database although the label is not
closed in between.
Syntax:
Function Undefine() As Boolean
ValueRequired
Description:
ValueRequired has value TRUE, if "ValueRequired" option for prompted variable is
enabled.
Syntax:
ValueRequired As Boolean
See also:
DefaultValue, DynamicValue, FixedLenght, IsBasedonQuantity
VarType
Description:
Vartype property represents the type of the variable.
Vartype property can have following values:
Value Description
1 Prompt
2 System clock
3 Printer clock
4 Global
5 Generated
6 Overload
7 Database
8 Contents provider
Please note:
Overload type of the variable is internal type of the variable. It is used, when
external application sets value for the variable.
Contents provider is variable type, which is invisible to the user. Contents provider
variable is the result of contents provider.
218
ActiveX interface
Syntax:
Property VarType As Long
Access Rights:
read-only
WordWrap
Description:
If variable has WordWrap option enabled then value of the WordWrap property is
TRUE.
Syntax:
WordWrap As Boolean
Add
Description:
Add method adds a variable with specific ID to the variable list. In case of success
TRUE result is returned.
Syntax:
219
ActiveX interface
Count
Description:
Count property returns the number of variables, which are defined on the label.
Syntax:
Property Count As Long
Access Rights:
read-only
Create
Description:
Create method creates new variable. Output result is interface to the new variable
and input parameter is the name of the new variable.
Syntax:
Function Create(Name As String) As IVar
See also:
Create, CreatePrompted, Delete, Remove
CreatePrompted
Description:
Create method creates new prompted variable. Output result is interface to the new
variable and input parameter is the name of the new variable.
Syntax:
Function CreatePrompted(Name As String) As IVar
See also:
Create, Delete, Remove
Delete
Description:
Delete method deletes a variable with specific ID. In case of success TRUE result is
returned.
220
ActiveX interface
Syntax:
Function Delete(ID As Long) As Boolean
See also:
Create, CreatePrompted, Remove
FindByID
Description:
Returns the interface to the existing variable. Variable is selected with ID.
Syntax:
Function FindByID(ID As Long) As IVar
See also:
FindByName
FindByName
Description:
Description:
Returns the interface to the existing variable. Variable is selected with Name.
Syntax:
Function FindByName(Name As String) As IVar
See also:
FindByID
FlushList
Description:
FlushList method erases the whole variable list. If the operation was sucessfull
TRUE value is returned.
Syntax:
Function FlushList() As Boolean
Item
Description:
221
ActiveX interface
Returns the interface to the existing variable. Variable is selected with Index.
Syntax:
Function Item(Index As Long) As IVar
Remove
Description:
Remove method removes a variable with specific ID from the variable list. In case of
success TRUE result is returned.
Syntax:
Function Remove(ID As Long) As Boolean
See also:
Create, CreatePrompted, Delete
SetValues
Description:
The IVariableList interface is extended to support setting multiple variable values
with a single command. The command is defined as:
Parameter Values should contain multiline value (one line for each variable). Each
line must be defined in format:
VariableName=VariableValue
The command will process each line and set the value for the variable. In case the
variable name is invalid (variable with that name does not exist),
the function will return an error.
In case the value is not valid for a variable, the function returns an error.
Syntax:
SetValues(Values As String)
222
ActiveX interface
223
ActiveX interface
ULabelOffsetR 1,2,3
ULabelOffsetX 1,2,3
ULabelOffsetY 1,2,3
ULabelSizeX 1,2,3
ULabelSizeY 1,2,3
UOverlap 1,2,3
UPaperSizeX 1,2,3
UPaperSizeY 1,2,3
URadiusX 1,2,3
URadiusY 1,2,3
UGapY 1,2,3
WebX 1,2,3
WebY 1,2,3
Author
Description:
Returns the name of the author of the label
Syntax:
Property Author As String
DefaultQuantity
Description:
Returns the default quantity, which is suggested before label production.
Syntax:
Property DefaultQuantity As Long
Access Rights:
read-only
224
ActiveX interface
Description
Description:
Returns the description of the label.
Syntax:
Property Description As String
Access Rights:
read-only
GapX
Description:
Returns the gap between the labels in mm/100 for the X axis.
Syntax:
Property GapX As Long
Access Rights:
read-only
See also:
GapY
GapY
Description:
Returns the gap between the labels in mm/100 for the Y axis.
Syntax:
Property GapY As Long
Access Rights:
read-only
See also:
225
ActiveX interface
GapX
IsMultiband
Description:
Returns true if the label is desinged for multiband printing, otherwise result of the
property is false.
Syntax:
Property IsMultiBand As Boolean
Access Rights:
read-only
See also:
NumberOfBands
LabelDimensionsUnit
Description:
Returns the unit of measure used for the label settings.
Syntax:
Property LabelDimensionsUnit As String
Access Rights:
read-only
LabelOffsetX
Description:
Returns the left offset, which is defined in the label.
Syntax:
Property LabelOffsetX As Long
Access Rights:
read-only
226
ActiveX interface
See also:
LabelOffsetY
LabelOffsetY
Description:
Returns the top offset, which is defined in the label.
Syntax:
Property LabelOffsetY As Long
Access Rights:
read-only
See also:
LabelOffsetX
LabelSizeX
Description:
Returns the height of the label.
See also:
LabelSizeX
Syntax:
Property LabelSizeX As Long
Access Rights:
read-only
LabelSizeY
Description:
Returns the width of the label.
227
ActiveX interface
Syntax:
Property LabelSizeY As Long
Access Rights:
read-only
See also:
LabelSizeY
NumberOfBands
Description:
Returns the number of bands, which are used in the label when multi-band label
printing is enabled.
Syntax:
Property NumberOfBands As Long
Access Rights:
read-only
See also:
IsMultiband
Overlap
Description:
Overlapping of the labels when using multi-band label printing in mm/100
Syntax:
Property Overlap As Long
Access Rights:
read-only
228
ActiveX interface
PageOffsetX
Description:
Offset for the unprintable area (X axis)
Syntax:
Property PageOffsetX As Long
Access Rights:
read-only
See also:
PageOffsetX
PageOffsetY
Description:
Offset for the unprintable area (Y axis)
Syntax:
Property PageOffsetY As Long
Access Rights:
read-only
See also:
PageOffsetY
PageSizeX
Description:
Returns the width of the printable page.
Syntax:
Property PageSizeX As Long
Access Rights:
read-only
See also:
229
ActiveX interface
PageSizeY
PageSizeY
Description:
Returns the height of the printable page.
Syntax:
Property PageSizeY As Long
Access Rights:
read-only
See also:
PageSizeX
PaperFormat
Description:
Returns the format of the paper. This is the dmPaperSize property from the
DEVMODE structure of the printer driver.
Syntax:
Property PaperFormat As Long
Access Rights:
read-only
PaperSizeX
Description:
Returns the paper size. This is the dmPaperWidth * 10 property from the
DEVMODE structure of the printer driver.
Syntax:
Property PaperSizeX As Long
Access Rights:
read-only
230
ActiveX interface
See also:
PaperSizeY
PaperSizeY
Description:
Returns the paper size. This is the dmPaperHeight * 10 property from the
DEVMODE structure of the printer driver.
Syntax:
Property PaperSizeX As Long
Access Rights:
read-only
See also:
PaperSizeX
PhysPageSizeX
Description:
Returns the whole width of the page.
Syntax:
Property PhysPageSizeX As Long
Access Rights:
read-only
See also:
PhysPageSizeY
PhysPageSizeY
Description:
Returns the whole height of the page.
231
ActiveX interface
Syntax:
Property PhysPageSizeY As Long
Access Rights:
read-only
See also:
PhysPageSizeX
PrintPages
Description:
Property returns true if the Print pages option is used in print dialog otherwise it
returns false. This option can be selected when printing multiple labels across.
Syntax:
Property RadiusX As Long
Access Rights:
read-only
RadiusX
Description:
Returns the radius value for the X axis of the label.
Syntax:
Property RadiusX As Long
Access Rights:
read-only
See also:
RadiusX
RadiusY
Description:
232
ActiveX interface
Syntax:
Property RadiusY As Long
Access Rights:
read-only
See also:
RadiusY
SetLabelSize
Description:
Use this method if you want to change the label size and other label settings. What
is possible to set can be seen in the parameters.
Syntax:
Function SetLabelSize(LabelWidth As Long, LabelHeight As Long, LeftOffset As
Long, TopOffset As Long, RightOffset As Long, BottomOffset As Long) As Boolean
Access Rights:
read-write
Title
Description:
Property retrieves the title of the label.
Syntax:
Property Title As String
Access Rights:
read-write
233
ActiveX interface
UGapX
Description:
Property retrieves the GapX label setting in users measurment unit.
Syntax:
UGapY
Description:
Property retrieves the GapY label setting in users measurment unit.
Syntax:
ULabelOffsetB
Description:
Property retrieves bottom label offset setting in users measurment unit.
Syntax:
ULabelOffsetR
Description:
.
234
ActiveX interface
Syntax:
ULabelOffsetX
Description:
Property retrieves left label offset setting in users measurment unit.
Syntax:
ULabelOffsetY
Description:
Property retrieves top label offset setting in users measurment unit.
Syntax:
ULabelOffsetR
Description:
Property retrieves right label offset setting in users measurment unit.
Syntax:
235
ActiveX interface
ULabelSizeX
Description:
Property retrieves label width setting in users measurment unit.
Syntax:
ULabelSizeY
Description:
Property retrieves label height setting in users measurment unit.
Syntax:
UOverlap
Description:
Property retrieves multiband overlaping setting in users measurment unit.
Syntax:
UPaperSizeX
Description:
Property retrieves paper width setting in users measurment unit.
Syntax:
236
ActiveX interface
UPaperSizeY
Description:
Property retrieves paper height setting in users measurment unit.
Syntax:
URadiusX
Description:
Property retrieves horizontal label radius setting in users measurment unit.
Syntax:
URadiusY
Description:
Property retrieves vertical label radius setting in users measurment unit.
Syntax:
WebX
Description:
237
ActiveX interface
Syntax:
Property WebX as Long
Access Rights:
read-only
See also:
WebY
WebY
Description:
Returns the number of labels on the page (Y axis)
Syntax:
Property WebY as Long
Access Rights:
read-only
See also:
WebX
238
ActiveX interface
IsPrintOnly
Description:
This property returns true if the NiceLabel/NiceEngine is running in print only mode.
When in print only mode some activex methods are not working or are working in
different manner.
Syntax:
IsPrintOnly As Boolean
JobRunEx
Description:
With this method LGLabel is able to read the third-party job file, and execute the
printing. LGLabel will use the Variable import filter DLLs to be able to execute “third
party” job files.
This method identifies the DLL based on the JobType parameter. In case the
Variable import filter DLL with specified JobType is not registered an error will be
produced.
When appropriate filter DLL will be identified, LGLabel will call the Conversion
function in the DLL, which converts the third-party job file to LGLabel’s native job file
format. In order to support UNICODE values of the job file, LGLabel will be updated
to support UTF-8 formatted JOB files (UTF8 boom must be included at the
beginning of the JOB file).
For implementation of the method check Oracle XML filter in the LGlabel.
Syntax;
Function JobRunEx(FileName As String, JobType As Long) As
Boolean
LabelImport
Description:
This method is used to import label files from another labeling software. Import filter
has to be design on the user side.
Import filter is a DLL, which is loaded on runtime when user requests to import
labels from another labeling software. The DLL is registered in the registry. When
used, it passes information about available import file types, which can be imported
using the selected filter.
LGLabel is using the import filter DLL interface to retrieve the available file types
that can be used with the filter. After user of LGLabel browses the file, LGLabel
239
ActiveX interface
passes this file name to the filter, and the filter creates LGLabel’s LBT file format.
LBT is a text-formatted file, which LGLabel recognizes and can directly load.
Syntax:
Function LabelImport(FilterID As Long, FormatID As Long,
ImportFile As String, ExportFile As String, EmbedGraphics As
Boolean) As Boolean
Explanation of the parameters:
FilterID
Name of the import filter (1,2,...)
FormatID
Name of the import filter function (1,2,...)
ImportFile
Path name to the original file.
ExportFile
Pathname to the destination file.
EmbedGraphics
Background picture embedded in the label:
True: embedded
False: not embedded
ReadWriteOpen
Description:
With this property you can control wether the labels opened through ActiveX are
opened in read only mode or not. If this property is true then the label is opened in
read/write mode and if modified it can be saved.
Syntax:
ReadWriteOpen As Boolean
SetControlEvent
Description:
Event objects provide means to synchronize between the caller application and the
server application. PrintEvent handling is implemented on Application level. The
Event can be set from calling application (ControlEvent). The setting method also
defines, if the ControlEvent should be released immediately after the first printing
action (creation of print job), or the ControlEvent will be released by calling
application (calling the event setting method with NULL parameter).
Syntax:
Function SetControlEvent(Event As Unknown, AutoRelease As
Boolean) As Boolean
240
ActiveX interface
released.
AutoRelease
TRUE: after the print action is completed, the event will be
released. Subsequent print events will not have a control
event (new control event should be set from the caller
application)
FALSE: after the printing is completed, the control event will
not be released. If new print actions will be called, they
will be logged under the same print event.
TestConnection
Description:
Method test if the connection to ILGApp is established.
Syntax:
Check
Description:
If the IsChecked property is set to false then the call to this method performs
calculation of the function based on current data and return 0 if successfull or non 0
if not successfull. Also the IsChecked property is set to true after this call.
Syntax:
Function Check() As Long
HasFilter
Description:
This property returns true if the database definition uses filter.
Syntax:
Property HasFilter As Boolean
241
ActiveX interface
IsChecked
Description:
If this property is set to false then the call to method Check performs calculation of
the function based on current data and return 0 if successfull or non 0 if not
successfull. Also this property is set to true after this call.
.
Syntax:
Level
Description:
If the function is used in some other function then this function will have level 2 while
its parent function will have level 1, this goes in depth depending on how many
dependant function you have. It is needed when calculating the functions because
those functions with higher level need to be calculated first in order that functions
with lower level are calculated properly.
Syntax:
FilterID
level number
Check
Description:
If the IsChecked property is set to false then the call to this method performs
calculation of the function based on current data and return 0 if successfull or non 0
if not successfull. Also the IsChecked property is set to true after this call.
242
ActiveX interface
Syntax:
Function Check() As Long
IsChecked
Description:
If this property is set to false then the call to method Check performs calculation of
the function based on current data and return 0 if successfull or non 0 if not
successfull. Also this property is set to true after this call.
.
Syntax:
Level
Description:
If the function is used in some other function then this function will have level 2 while
its parent function will have level 1, this goes in depth depending on how many
dependant function you have. It is needed when calculating the functions because
those functions with higher level need to be calculated first in order that functions
with lower level are calculated properly.
Syntax:
243
ActiveX interface
Check
Description:
If the IsChecked property is set to false then the call to this method performs
calculation of the function based on current data and return 0 if successfull or non 0
if not successfull. Also the IsChecked property is set to true after this call.
Syntax:
Function Check() As Long
IsChecked
Description:
If this property is set to false then the call to method Check performs calculation of
the function based on current data and return 0 if successfull or non 0 if not
successfull. Also this property is set to true after this call.
.
Syntax:
IsUsed
Description:
Property tells you if this function is used on the label in some other function,
element, .
Syntax:
Level
Description:
If the function is used in some other function then this function will have level 2 while
its parent function will have level 1, this goes in depth depending on how many
dependant function you have. It is needed when calculating the functions because
those functions with higher level need to be calculated first in order that functions
with lower level are calculated properly.
Syntax:
244
ActiveX interface
FilterID
level number
GetPrinterDraknessListValues
Description:
Method retrieves commma separated list of darkness values for specified printer.
Syntax:
Function GetPrinterDarknessListValues(PrinterName As String)
As String
GetPrinterList
Description:
Method retrieves comma separated list of printer names.
Syntax:
GetPrinterSpeedListValues
Description:
Method retrieves commma separated list of speed values for specified printer.
Syntax:
245
ActiveX interface
OriginalPrintID
Description:
With this property you can set the original print id for the print job before print action.
It is usually used for reprint when you want to set the original print id so that you
know from which print job this print job was reprinted.
Syntax:
OriginalPrintID As String
CharSet
Description:
Property returns character set for this object.
Syntax:
IsRTL
Description:
Property returns true if the text is in "right to left" mode.
Syntax:
ScaleFactor
Description:
Returns font scaling percentage.
Syntax:
246
ActiveX interface
CharSet
Description:
Property returns character set for this object.
Syntax:
IsRTL
Description:
Property returns true if the text is in "right to left" mode.
Syntax:
GetFormatChars
Description:
Method returns allowed characters for this variable.
Syntax:
Function GetFormatChars() As String
247
ActiveX interface
GetSelectedListElement
Description:
If the HasPickList property is true then the variable has a picklist and this method
returns the curently selected item in the picklist.
Syntax:
Function GetSelectedListElement() As String
HasPickList
Description:
Property returns true if the variable is defined as pick list, otherwise returns false.
Syntax:
The following procedures show how to install and use the type library with
Visual Basic, Delphi and Visual Studio.
Visual Basic
You must include Nlog5 in your project:
Choose Project -> References.
Activate Nlog5 in the list of available references and
validate the dialog box.
Delphi
You must include Nlog5 in your project:
Choose Project -> Import Type Library
248
ActiveX interface
GetPrintJob
Description:
This method returns an interface to a PrintJob object. This object contains a
member called Status. This is an integer field containing the detailed status of a
print job.
Status is returned as flags, meaning one job can have multiple values for example it
can be in state Printing, Error and Deleting at the same time. For more information
refer to MSDN Spooler statuses.
249
ActiveX interface
Syntax:
Function GetPrintJob(ID As String) As PrintJob
If you stop the Label Service, the functionality will not be available.
250
ActiveX interface
Updated 3
WebAddress 3
Attributes
Description:
Specifies the printer attributes.
Type:
Integer
Possible values:
PQ_PRINTER_ATTRIBUTE_NETWORK = $00000001
Printer is a network printer connection.
PQ_PRINTER_ATTRIBUTE_NICE = $00000002
Printer was installed using nice drivers.
PQ_PRINTER_ATTRIBUTE_SHARED = $00000004
Printer is shared.
PQ_PRINTER_ATTRIBUTE_OFFLINE = $00000008
Indicates whether the printer is currently connected.
PQ_PRINTER_ATTRIBUTE_DEFAULT = $00000020
Indicates that the printer is the default printer on the
system.
DriverName
Description:
Printer driver name.
Type:
String
HasWebBrowser
Description:
True - printer has built in web server.
False - printer has not built in web server.
Type:
Boolean
251
ActiveX interface
Name
Description:
Specifies the printer name.
Type:
String
NiceStatus
Description:
List of string representing advanced errors on printers such as head open, out of
ribbon,….
Type:
TPQNiceStatus
PrintJobList
Description:
List of the currently queued print jobs.
Type:
TPQPrintJobList
ShareName
Description:
Identifies share name of the printer. Only used if PQ_PRINTER_ATTRIBUTE_SHARED
is set for attributes member.
Type:
String
Status
Description:
Specifies the printer status.
Type:
Integer
Possible values:
PQ_PRINTER_STATUS_PAUSED = $00000001
Printer is paused.
252
ActiveX interface
PQ_PRINTER_STATUS_PRINTING = $00000002
Printer is currently printed.
PQ_PRINTER_STATUS_ERROR = $00000004
Printer is in error state.
PQ_PRINTER_STATUS_NOT_AVAILABLE = $00000008
The printer is not available for printing.
PQ_PRINTER_ATTRIBUTE_DEFAULT = $00000020
Indicates that the printer is the default printer on the
system.
Updated
Description:
True - any of the members were updated.
False – no members were updated
Type:
Boolean
PrinterArray
Description:
List of TPQPrinter classes.
Type:
TPQPrinterArray
253
ActiveX interface
Position 5
PrinterName 5
Priority 5
Quantity 5
Status 5
Owner 5
Submitted 5
OEM
Description:
Has to be 0.
Type:
Integer
ID
Description:
Specifies a print job identifier.
Type:
Integer
Name
Description:
Specifies the name of print job.
Type:
String
Pages
Description:
Specifes number of pages the print job contains.
Type:
Integer
254
ActiveX interface
PagesPrinted
Description:
Specifies the number of pages that have printed.
Type:
Integer
Position
Description:
Specifies the print job’s position in the print queue.
Type:
Integer
PrinterName
Description:
Specifies the name of the printer for which the print job was spooled.
Type:
String
Priority
Description:
Specifies the priority of the print job.
Type:
TPQPrintJobPriority
Quantity
Description:
Specifies the number of labels that will be printed.
Type:
Integer
Status
Description:
255
ActiveX interface
Type:
Integer
Possible values:
PRINTJOB_STATUS_PARTIALLY_SPOOLED = $00000002
User cancelled print job aused.
PRINTJOB_STATUS_SPOOL_OK = $00000004
Print job was successfully spooled.
PRINTJOB_STATUS_SPOOL_FAILED = $00000008
There was an error in label production such as wrong barcode value.
PRINTJOB_STATUS_DELETING = $00000010
Print job is being deleting.
PRINTJOB_STATUS_DELETED = $00000020
Print job has been deleted.
PRINTJOB_STATUS_ERROR = $00000040
An error is associated with print job.
PRINTJOB_STATUS_PAUSED = $00000080
Print job is paused.
PRINTJOB_STATUS_PRINTING = $00000100
Print job is printing.
PRINTJOB_STATUS_PRINTED = $00000200
Print job is printed.
PRINTJOB_STATUS_RESTART = $00000400
Print job has been restarted.
PRINTJOB_STATUS_SPOOLING = $00000800
Print job is spooling.
PRINTJOB_STATUS_QUEUED = $00001000
Print job is queued.
PRINTJOB_STATUS_MOVED = $00002000
Print job has been moved to another printer.
PRINTJOB_STATUS_PREPARING = $00004000
Language monitor is preparing job to be sent to printer.
PRINTJOB_STATUS_SENDING = $00008000
Language monitor is sending the print job to printer.
PRINTJOB_STATUS_SENT_OK = $00010000
Language monitor successfully sent the print job to the printer.
PRINTJOB_STATUS_SEND_FAILED = $00020000
Language monitor failed at sending print job to printer.
256
ActiveX interface
Owner
Description:
Specifies the name of the user that owns the print job.
Type:
String
Submitted
Description:
Specifies the time that this print job was spooled.
Type:
TXSDateTime
PrintJobArray
Description:
List of TPQPrintJob classes.
Type:
TPQPrintJobArray
2.12.6 Types
Properties Version
Availability
TPQPrintJobPriority 3
TPQPrintJobMoveDirection 3
TPQPrinterArray 3
TPQNiceStatus 3
TPQPrintJobArray 3
TPrinterNames 3
TPrintJobIds 3
257
ActiveX interface
TPQPrintJobPriority
Description:
Print job priority.
Type:
Enum:(pjpHigh, pjpNormal, pjpLow)
TPQPrintJobMoveDirection
Description:
Print job move direction.
Type:
Enum:(pjmvup, pjmvDown)
TPQPrinterArray
Description:
List of TPQPrinter classes.
Type:
Array of TPQPrinter
TPQNiceStatus
Description:
List of advanced printer.
Type:
Array of String
TPQPrintJobArray
Description:
List of TPQPrintJob classes.
Type:
Array of TPQPrintJob
258
ActiveX interface
TPrinterNames
Description:
List of printer names.
Type:
Array of String
TPrintJobIds
Description:
List of print job identifiers.
Type:
Array of Integer
2.12.7 Methods
Methods Version
Availability
ChangePrintJobPosition 3
ChangePrintJobPriority 3
DeleteAllPrintJobs 3
DeletePrintJobs 3
GetPrinters 3
GetPrintersInErrorState 3
GetPrinterInfo 3
GetPrintJobs 3
GetPrinterNames 3
GetPrinterJobsCount 3
GetSpecifiiedPrinters 3
GetSpecifiiedPrintersInErrorState 3
MovePrintJobs 3
PausePrintJobs 3
PausePrinters 3
ProcessJob 3
RenamePrinter 3
RestartPrintJobs 3
259
ActiveX interface
SharePrinter 3
UsePrintersOffline 3
UsePrintersOnline 3
ChangePrintJobPosition
Description:
Moves print jobs one position up or down in queue list.
Syntax:
procedure ChangePrintJobsPosition(const APrintJobIDs:
TPrintJobIds; AMoveDirection: TPQPrintJobMoveDirection)
Parameters:
APrintJobIDs
Print job ids list. Only the print jobs specified in this list will
be used.
AMoveDirection
Set this to pjmvUp to move it one position up or set it to pjmvDown
to move it one position down
ChangePrintJobPriority
Description:
Change the priority of specified print jobs. Print job with higher priority will be printed
before the ones with lower priority no matter the position in the queue.
Syntax:
procedure ChangePrintJobsPriority(const APrintJobIDs:
TPrintJobIds; APriority: TPQPrintJobPriority)
Parameters:
APrintJobIDs
Print job ids list. Only the print jobs specified in this list will
be used.
APriority
Possible values are: pjpHigh, pjpNormal, pjpLow. Default priority is
pjpLow.
DeleteAllPrintJobs
Description:
Delete all print jobs currently in queue for the specified printers.
260
ActiveX interface
Syntax:
procedure DeleteAllPrintJobs(const APrinterNames: TPrinterNames)
Parameters:
APrinterNames
Printer names list. Only the printers specified in this list will be
used.
DeletePrintJobs
Description:
Deletes specified print jobs.
Syntax:
procedure DeletePrintJobs(const APrintJobIDs: TPrintJobIds)
Parameters:
APrintJobIDs
Print job ids list. Only the print jobs specified in this list will
be used
GetPrinters
Description:
Retrieves all installed printers. Note that this function does not retrieve the printers
that are connected from other machines, it retrieves only locally installed printers.
Syntax:
function GetPrinters(const ALastUpdate: TDateTime; var
AAllPrinterNames: WideString; const ANicePrintersOnly: Boolean):
TPQPrinterList)
Parameters:
ALastUpdate
If not 0 then it retrieves only the printers that were modified
after the time specified in ALastUpdate. For example if ALastUpdate
is 12:00 and printer was modified at 11:55 then this printer will
not be added to the printer list.
AAllPrinterNames
Returns names of all installed printers separated by comma.
ANicePrintersOnly
Set this to TRUE to specify that only the printers that were installed using nice drivers should be
returned.
261
ActiveX interface
GetPrintersInErrorState
Description:
Returns printers that meet the following conditions:
- printer’s status is ERROR
- printer have job(s) in queue and it is paused or offline
Syntax:
function GetPrintersInErrorState(): TPQPrinterList
262
ActiveX interface
GetPrinterInfo
Description:
Returns printers that meet the following conditions:
- printer’s status is ERROR
- printer have job(s) in queue and it is paused or offline
Syntax:
Parameters:
APrinterName
Name of printer for which info should be retrieved..
ASpoolerStatus
Current status of the printer as seen in the spooler.
APrinterStatus
List of string representing advanced printer errors.
GetPrintJobs
Description:
Returns print jobs for specified printers.
Syntax:
Parameters:
ALastUpdate
If not 0 then it returns only the print jobs that were modified
after the time specified.
APrinterNames
Comma separated string of printer names for which print jobs should
be returned.
AAllPrintJobIDs
Return ids of all print jobs for specified printers, separated by
comma.
263
ActiveX interface
GetPrinterNames
Description:
Retreives all installed printer names .
Syntax:
function GetPrinterNames():WideString
GetPrinJobsCount
Description:
Returns count of all print jobs for all printers.
Syntax:
GetSpecifiedPrinters
Description:
Returns count of all print jobs for specified printers.
Syntax:
Parameters:
APrinterNames
Comma separated string of printer names for which print jobs should
be returned.
GetSpecifiedPrintersErrorState
Description:
Returns for specified printers that meet the following conditions:
- printer’s status is ERROR
- printer have job(s) in queue and it is paused or offline
Syntax:
264
ActiveX interface
Parameters:
APrinterNames
Comma separated string of printer names for which print jobs should
be returned.
MovePrintJobs
Description:
Moves print jobs to another printer.
Syntax:
Parameters:
APrinteJobIDs
Print job ids list. Only the print jobs specified in this list will
be used.
APrinterName
Name of printer to which print jobs should be moved.
MovePrintJobsEx
Description:
Moves print jobs to another printer and returns list of
generated errors in TMoveErrors – array of TMoveError(class
TRemoteable)
Syntax:
Parameters:
APrinteJobIDs
Print job ids list. Only the print jobs specified in this list will
be used.
APrinterName
Name of printer to which print jobs should be moved.
265
ActiveX interface
PausePrintJobs
Description:
Pauses / resumes specified print jobs.
Syntax:
Parameters:
APrinteJobIDs
Print job ids list. Only the print jobs specified in this list will
be used.
APause
If TRUE print jobs will be paused else they will be resumed.
PausePrinters
Description:
Pauses / resumes specified printers.
Syntax:
Parameters:
APrinterNames
Printer names list. Only the printers specified in this list will be
used.
APause
If TRUE printers will be paused else they will be resumed.
ProcessJob
Description:
Generates JOB File for specified OEM
Syntax:
266
ActiveX interface
Parameters:
AOEM
OEM value, use 0 for NiceLabel.
AJobContents
JOB file contents.
RenamePrinter
Description:
Renames specified printer.
Syntax:
Parameters:
APrinterName
Existing printer name.
ANewPrinterName
New printer name
RestartPrintJobs
Description:
Restarts print jobs. This means that the spooler will resend
whole job again.
Syntax:
Parameters:
APrintJObIDs
Print job ids list. Only the print jobs specified in this list will
be used.
SharePrinter
Description:
Sets/Removes share mode for the specified printer.
267
ActiveX interface
Syntax:
Parameters:
APrinterName
Name of the printer that will be shared.
AShare
If TRUE printer will be shared, else shared flag will be removed.
AShareName
Name displayed to the remote computers that will connect to this
printer.
UsePrintersOfflLine
Description:
Sets OffLine mode for specified printers.
Syntax:
Parameters:
APrinterName
Name of the printer that will be shared.
UsePrintersOnLine
Description:
Sets OnLine mode for specified printers.
Syntax:
Parameters:
APrinterName
Name of the printer that will be shared.
268
ActiveX interface
2.13.1 Introduction
GalleryForm has two types of ActiveX interfaces. Each of them has specific
purpose, the first interface is meant for design mode and the second is meant for
the run mode.
Design mode:
Main purpose of using ActiveX for design mode is to open form in one of the
possible ways which offers you different possibilities of designing the form.
For more information refer to the GalleryForm ActiveX Interface – Design mode
chapter.
Run mode:
The only purpose of the run mode is to run desired form directly from your
application. There is also possibility to execute the form also from the design mode
interface, but if you just need to run the form without design operation this interface
is recommended.
For more information refer to the GalleryForm ActiveX Interface – Run mode
chapter.
Class name
GalleryForm3.Designer
Class IApplication
Design
Description:
Design method opens GalleryForm in design mode. There are two available
parameters and therefore four combinations how this method can be used:
269
ActiveX interface
Syntax:
Function Design(FormFileName As String, LabelFileName As
String) As Boolean
Login
Description:
Login method is used, when login is required. As Username you must specify the
user, with which you want to open GalleryForm.
If Login is successful the TRUE result is returned.
Syntax:
Function Login(UserName As String) As Boolean
Run
Description:
GalleryForm can be started in the run mode. For this you can use Run method. As a
parameter you must provide the file name to the form you wish to run.
If form was ran ok then TRUE result is retured.
Syntax:
Function Run(FormFileName As String) As Boolean
FormID
Description:
FormID property returns the ID of the opened form.
270
ActiveX interface
Syntax:
Property FormID As Long
Class Name
GalleryForm3.Engine
Class IApplication
Methods Version Properties Version
Availability Availability
Login 1,2,3 FormID 1,2,3
Open 1,2,3
Open
Description:
To run a form in run mode use the Open method. As a parameter you must provide
the file name to the form you wish to run.
If form was running ok then TRUE result is retured.
Syntax:
Function Open(FormFileName As String) As Boolean
Login
Description:
Login method is used, when login is required. As Username you must specify the
user, with which you want to open GalleryForm.
Syntax:
Function Login(UserName As String) As Boolean
FormID
Description:
271
ActiveX interface
Syntax:
Property FormID As Long
272
DDE Communication
3. DDE Communication
3.1 Introduction
To create the DDE communication, the client application must use the following
DDE parameters:
Service = LabelGallery
Topic = LINE or JOB
When you are using the JOB topic, the content is the name of the command file that
must be run. When you are using the LINE topic, the content is one of the Label
Gallery commands.
When you want to use DDE communication to control Label Gallery, it is probably
best, when the user doesn't know for the background running of this application. For
this purpose you can use this command parameter:
LGPLUS3.EXE <label_name> /s
The parameter s (silent) prevents Label Gallery from being visible on the screen. It
will run in a minimized form.
3.2.1 DDEInitiate
Description:
DDEInitiate command initiates a link between Label Gallery and your application.
Syntax:
DDEInitiate(Service, Topic)
3.2.2 DDEExecute
Description:
DDEExecute command executes a command on your label. For list of available
commands please see GalleryCommands chapter of this manual.
Syntax:
DDEExecute Channel Command
273
DDE Communication
3.2.3 DDETerminate
Description:
DDETerminate command terminates a link between Label Gallery and your
application.
Syntax:
DDETerminate Channel
3.3 GalleryCommands
Printing with Label Gallery can accomplished automatically. There are several
methods for automation. The first method is with the use of command files (JOB
file), which is used with the Automatic print command from the File menu or
directly from the shell.
Another way is with the help of any other Windows application, which enables DDE
communication between the applications.
In both methods, the same commands may be used. When you are using the
automatic print, the commands must be written one per line in the command file
(JOB file). With DDE communication, the commands are sent through the DDE
channel.
3.3.1 COMMON
SET
Description:
Name is the name of the variable defined on the label. If the variable isn't on the
label, an error will occur. Step and Quantity_of_repetition are optional
274
DDE Communication
parameters. These parameters specify the increment of the variable and the number
of the labels before change.
If variable value contains space characters or commas, you have to enclose the text
in quotation marks.
Syntax:
SET name = value_of_the_variable, [,step[,
quantity_of_repetition]]
COMMENT
Description:
When developing program code or scripts it is very wise to well document your
commands. This will help you decode what the script really performs, when you will
look at the code after some time.
Use semicolon (;) on the beginning of the line. Everything following it will be treated
as script comment and will not be processed by Label Gallery.
Syntax:
;
LOGIN
Description:
Performs login procedure into Label Gallery program. This is necessary when login
into Label Gallery is required.
NOTE. This is DDE command and cannot be used in .JOB files.
Syntax:
LOGIN <username>
RETURN
Description:
This command returns to the Label Gallery program after printing.
Syntax:
Return
QUIT
Description:
This command stops the Label Gallery program after printing. The application is
closed.
275
DDE Communication
Syntax:
Quit
MESSAGEBOX
Description:
Print the message. The second parameter represents the title of the message dialog
box.
If variable value contains space characters or commas, you have to enclose the text
in quotation marks (e.g. MESSAGEBOX "Insert labels in printer",
Warning).
Syntax:
MESSAGEBOX message , caption
OEMTOANSI
Description:
This command works in conjunction with command SET. It puts the text that follows
the command SET in proper codepage, so that variable is assigned the proper
value.
Use it to put the values following SET command to the proper codepage, so correct
values will be transferred to Label Gallery at print time.
Syntax:
OEMTOANSI ON|OFF
3.3.2 FILE
CREATEFILE
Description:
This command lets you create the file with the contents Label Gallery.
The purpose of creating or deleting files is that the client application knows when will
be printing stopped.
The example of usage is printing from the file. First the application prepares variable
data for the labels into particular file. Now Label Gallery is activated and printing
starts. To inform application, that the printing process is finished, file with data could
be deleted at the end. This could be a signal to application, that new "job" could be
started.
See also:
DELETEFILE
276
DDE Communication
Syntax:
CREATEFILE <name_of_the_file>
DELETEFILE
Description:
This command deletes the file.
See also:
CREATEFILE
Syntax:
DELETEFILE <name_of_the_file>
LABEL
Description:
The LABEL command opens the working label. If the label is already opened, the
program will use this instance. It is recommended to write the full path name along
with the file name.
Note, if the variable value contains space characters or commas, you will need to
enclose the whole path in quotation marks (e.g. LABEL "C:\Program
Files\Sato\Labels\sample3.lbl").
If you use the LABEL command with GalleryWatch running in service mode, use the
UNC quotation instead of the mapped drives (e.g. LABEL "\\SERVER\MY
LABELS\LABEL.LBL" instead of "G:\MY LABELS\LABEL.LBL").
Syntax:
LABEL <name_of_the_file>
FILECLOSE
Description:
The FILECLOSE command closes the currently active label. Label Gallery will stay
opened.
Syntax:
FILECLOSE
LABELCLOSE
Description:
277
DDE Communication
The LABELCLOSE command closes the currently active label. Label Gallery will
stay opened.
This command is introduced as a synonym for
FILECLOSE command.
Syntax:
LABELCLOSE
EXPORTLABEL
Description:
The EXPORTLABEL command exports currently active label. Label Gallery will stay
opened.
Syntax:
EXPORTLABEL
3.3.3 PRINTING
Description:
The Print command starts the form or label printing. The first parameter is the
print quantity of the labels; it can be a number, or one of following words:
VARIABLE
UNLIMITED
The first parameter means printing on the base of the variable quantity (one of the
variables sets the quantity), the second one means unlimited printing (printing from
the whole database file for example).
Second parameter in the command represents the number of the labels you want to
omit before first printed label on the page. The parameter can be used when the
part of the page is already printed. The rest of the unused labels on the page can be
printed with the help of this parameter.
Syntax:
PRINT quantity[, skip]
PORT
Description:
This command overrides the printer's port name. Next PRINT command will print to
the port specified.
Usually this command is used to print the label to a file. In this case you must
specify name of file in parameter port_name before using the PRINT command.
278
DDE Communication
Syntax:
PORT <port_name>
PRINTER
Description:
Normally the PRINT command prints the label using the printer specified in the label
file. With this command you can override the printer and print the labels using
different printer.
If printer name contains space characters, you have to enclose it in quotation marks.
For printer_name always use the system printer name as is displayed in the
status line in the Label Gallery Plus application. System printer names are usually
the same as the printer names in Printers folder from Control Panel. They differ only
when you are using network-connected printers, when you should use
"\\server\share" syntax and not a printer friendly name.
Syntax:
PRINTER <printer_name>
PRINTJOBNAME
Description:
Specifies the print job name that will be used in print manager when using PRINT
command. After printing the name is returned in normal state.
If variable value contains space characters or commas, you have to enclose the text
in quotation marks (e.g. PRINTJOBNAME "Label for printing").
Syntax:
PRINTJOBNAME <job_name>
SESSIONSTART
Description:
All three commands(SessionStart, SessionPrint, SessionEnd) are used
together. If ordinary command SessionPrint is used, every time a complete data
stream for printer is sent. If you want to join multiple Print commands into one data
stream, you can use the command SessionStart followed with any number of
SessionPrint commands and in the end use the command SessionEnd. The
stream is not closed until the command SessionEnd occurs. These commands
offer a way of optimal printing through GalleryCommands and it is not necessary to
generate a complete data stream for each print session.
See also:
SESSIONPRINT
SESSIONEND
279
DDE Communication
SESSIONPRINT
Description:
SESSIONPRINT quantity [, skip]
You send the data stream to printer using this function. You can use multiple
SessionPrint commands one after another and join them in single data stream.
The stream is not closed until the command SessionEnd occurs. The meaning of
quantity and skip parameters is the same as with GalleryCommand PRINT.
See also:
PRINT
SESSIONSTART
SESSIONEND
SESSIONEND
Description:
The function closes data stream.
See also:
SESSIONSTART
SESSIONPRINT
3.3.4 DATABASE
SETDATABASE
Description:
Value Description
database_name The name of the currently used database as defined in the
program
value The name of the new table that should be used as data source
This command allows you to use some other database with the label file and not the
one that was connected to the label file at design time.
This other database will only be used when printing labels, the label file will remain
intact with connection to the original database.
See also:
SETTABLE
Syntax:
280
DDE Communication
SETTABLE
Description:
Value Description
table_name The name of the currently used table as defined in the program
value The name of the new table that should be used as data source
This command allows you to use some other table with the label file and not the one
that was connected to the label file at design time.
This other database table will only be used when printing labels, the label file will
remain intact with connection to the original table.
The new database table should be of the same type as original table. For example,
you cannot change the table from dBase to Paradox. The structure of new table has
to be identical to the original one.
You can use table from the database that is already connected to the label or from
some entirely different database.
See also:
SETDATABASE
Syntax:
SETTABLE <table_name> = <value>
281
Programming Samples
4. Programming Samples
4.1 DDE
DDE programming samples for Microsoft Excel, Microsoft Word are included in the
Label Gallery Integration Documents and Samples package which is a part
Label Gallery 3 distribution CD.
Description:
The main reason this option is the slowest one is that every time when label is going
to be opened the new Label Gallery object is created. After that every label is
opened and closed for every printout. At the end Label Gallery software is closed as
well.
Syntax:
createObject (LabelGalleryPlus3)
LabelID = LGApp.LabelOpen("sample3.lbl")
Success = LGApp.LabelSetVar(LabelID, "Bar Code", "11", 0, 0)
Success = LGApp.LabelPrint(LabelID, 1) ' Print 1 label
Success = LGApp.LabelClose(LabelID)
LG.Quit
createObject (LabelGalleryPlus3)
LabelID = LGApp.LabelOpen("sample3.lbl")
Success = LGApp.LabelSetVar(LabelID, "Bar Code", "22", 0, 0)
Success = LGApp.LabelPrint(LabelID, 1) ' Print 1 label
Success = LGApp.LabelClose(LabelID)
LG.Quit
282
Programming Samples
createObject (LabelGalleryPlus3)
LabelID = LGApp.LabelOpen("sample3.lbl")
Success = LGApp.LabelSetVar(LabelID, "Bar Code", "33", 0, 0)
Success = LGApp.LabelPrint(LabelID, 1) ' Print 1 label
Success = LGApp.LabelClose(LabelID)
LG.Quit
SLOW:
Description:
This is a faster option than the previous one but it is still slow. Now the object
LGLabel is created just once for the whole print process. This speeds us the
response times and labels are printed faster. But every time the label is printed, it is
also immediately closed. When the next print of the same label is required, it must
be re-opened. The operation takes some time.
Syntax:
createObject (LabelGalleryPlus3)
LabelID = LGApp.LabelOpen("sample3.lbl")
Success = LGApp.LabelSetVar(LabelID, "Bar Code", "11", 0, 0)
Success = LGApp.LabelPrint(LabelID, 1) ' Print 1 label
Success = LGApp.LabelClose(LabelID)
LabelID = LGApp.LabelOpen("sample3.lbl")
Success = LGApp.LabelSetVar(LabelID, "Bar Code", "22", 0, 0)
Success = LgApp.LabelPrint(LabelID, 1) ' Print 1 label
Success = LGApp.LabelClose(LabelID)
LabelID = LGApp.LabelOpen("sample3.lbl")
Success = LGApp.LabelSetVar(LabelID, "Bar Code", "33",
0, 0)
Success = LGApp.LabelPrint(LabelID, 1) ' Print 1 label
Success = LGApp.LabelClose(LabelID)
LG.Quit
FAST:
Description:
This is one of the fastest options. Label Gallery software is started only once. The
label is also opened only once and then just left opened in the Label Gallery
software. When additional label printout is required, the already opened label will be
used again.
Syntax:
LabelID = LGApp.LabelOpen("sample3.lbl")
283
Programming Samples
Success = LGApp.LabelClose(LabelID)
FASTEST:
Description:
In this case the label opening and closing procedures are performed only once.
Additionally the LabelSessionPrint command is used. The main reason is the
advantage in speed compared to the common LabelPrint command. The printing
actions are defined within a LabelSessionStart and LabelSessionEnd commands.
Any number of LabelSessionPrint commands can be used. The labels are cached in
the computer memory and they are processed and printed at the same time, when
the LabelSessionEnd command is encountered. There is no delay in the label
printing as all labels are sent in one batch job. SessionPrint works for one label at a
time, so you cannot change the printed label during on print session.
See also:
LabelSessionStart
Syntax:
LabelID = LGApp.LabelOpen("sample3.lbl")
LGApp. LabelSessionStart
LGApp. LabelSessionEnd
Success = LGApp.LabelClose(LabelID)
284
Programming Samples
Requirements
To setup an ASP page that you will use to print labels you need to do the following:
Design a label file
Create an ASP file
Label file
You have to prepare a label file that will be printed from ASP page. You can use
Label Gallery Plus label editor for this task. The labels can be fixed or with variable
values. If you have variable object on the label, they are always linked to some
variables.
The variables will need to be filled with some values before the printing can occur.
Here is where your ASP file comes in. You need to know the names of the variables
that are defined on the label so you can set their values. In the sample ASP script
we use the variables Name, SurName, Address and Phone.
ASP file
ASP file can be created in any editor that is intended for such operations. ASP file is
a text file with the programming commands that ASP web server can understand
and execute. ASP file is actually a HTML formatted file enriched with the ASP
capabilities. The web page using ASP is no longer static page, but is an output of
the ASP program.
When writing the ASP code, you are using the same ActiveX interface to connect to
Label Gallery software as you would use when programming the application in
Visual Basic, Delphi, C++ and similar development environments.
Sample of the source code can be found in the next paragraph.
<HTML>
285
Programming Samples
<HEAD>
<TITLE>LabelGallery using ASP</TITLE>
</HEAD>
</FORM>
<HR>
<%
Dim ID, Result, LG
Set LG = CreateObject("LabelGalleryPlus3.Application")
ID = LG.LabelOpen("G:\tmp\ASP\LabelGallery.lbl")
Result = LG.LabelSetVar(ID, "Name", Request.form("fname"), -9999, -9999)
Result = LG.LabelSetVar(ID, "SurName", Request.form("lname"), -9999, -9999)
Result = LG.LabelSetVar(ID, "Address", Request.form("address"), -9999, -9999)
Result = LG.LabelSetVar(ID, "Phone", Request.form("phone"), -9999, -9999)
Result = LG.LabelPrint(ID, 1)
LG.Quit
%>
</BODY>
</HTML>
286
Programming Samples
Complete ASP sample files are installed together with the installation of Label
Gallery software. The location for the ASP sample is the folder "..\SATO\Gallery
3\Samples\Integration".
Permissions
To successfully use Label Gallery integrated to ASP web page you must correctly
set the access permissions on the web server. To set or check the web server
permissions run the utility "DCOMCNFG" on the computer running the web server.
1. Expand the Component Services, Computers, My Computer, DCOM Config.
2. Locate Label Gallery in the list of applications with DCOM interface.
3. Right-click it then open its properties.
4. Go to Identity tab and select the option "The interactive user."
5. Go to Security tab ane select the option "Customize" for Launch and
Activation Persmissions. Click the button Edit.
6. Select the users that are allowed to run Label Gallery software from the ASP
website. These are not external users connecting to the web server, but
Windows system users that can run Label Gallery software.
Printing
Label printing through ASP-enabled web server can be performed on all printer
drivers that are installed on the server computer. By selecting different ports in the
printer drivers, you can redirect printing to different locations.
Those printer drivers can be redirected to the following locations.
Printers attached directly to the server computer
Printers attached to the client computer
If you want to print labels to the client computer you have to redirect printer
driver on the server to the client printer port. The printer driver must be installed
on the server and you have to make sure that the port the printer is using points
to the client computer. Usually the client shares its printer port as
(\\server\share), where "server" is the name of the client computer and "share" is
the shared name of the port on the client.
Printers attached to the network
The port in the printer driver must be redirected to the printer’s IP address. In
this case the printer has its own network interface card with the IP number and
the port number. You need to be familiar with both numbers to correctly set up
the network port properties in the printer driver.
4.5 ASP.NET
Label Gallery can be used also in the ASP.NET environment almost on the same
way as regular ASP. Basically the only difference is that the local ASP user, which is
created when ASP.NET environment is installed, has sufficient permissions to run
Label Gallery.
To achieve this you have to set the permissions for that user.
287
Programming Samples
Sample VBSCript
Here is a sample script.
VBscript function below sets “Prompt” variable value to 100.
Method Variables of class Label is used to access VarableList class. With method
FindByname class Var is accessed, variable “Prompt” located and SetValue method sets
value 100 to variable Prompt
a = 100
Result = label.variables.findbyname("Prompt").setvalue(a)
288
FAQ
5. FAQ
The other method is to open the label in Advanced mode. In this case you have
opened an interface to the label and all label properties are stored in one object.
You have to change the PrinterName property to the desired printer name.
Status = oLabel.PrinterName = “SATO CL408e”
289
FAQ
290
FAQ
291
Glossary
6. Glossary
ActiveX Controls An ActiveX Control is a stand-alone software component
who’s function is pre-defined and performs in a standard
way. It exemplifies component software. The ActiveX
Control specification defines this standard and sets the
stage for plug-in component architecture. An ActiveX
Control is a component of functionality that can be
purchased and added to a Windows application. In
essence, an entire application can now be built from pre-
existing parts (reusable software components). Bear in
mind that ActiveX Controls are not, by themselves,
applications. They are service providers (servers) that
plug into a control container. As with other ActiveX
technologies, interactions between participating software
units are specified by various interfaces supported by
COM. In the case of ActiveX controls, the involved
software units are the control and its container. An
ActiveX Control may incorporate many other ActiveX
technologies, all of which are COM-based. As an
example, controls often support embedding interfaces as
well as automation, allowing access to their methods.
Automation Automation is a means in which a developer can access
an application’s functionality through COM-object
support. This is not source code exposure, but
component exposure. Automation provides programmers
with the means to pull a feature from an existing
application and add the same feature to their own
project. For instance, since Microsoft Excel supports
automation, programmers can incorporate existing Excel
features into their work. With automation, Excel is no
longer just an end-user application, it has become a
valuable, programming toolkit.
Client/Server A network architecture in which each computer or
architecture process on the network is either a client or a server.
Servers are powerful computers or processes dedicated
to managing disk drives (file servers), printers (print
servers), or network traffic (network servers). Clients are
PCs or workstations on which users run applications.
Clients rely on servers for resources such as files,
devices, and even processing power. Another type of
network architecture is known as a peer-to-peer
architecture because each node has equivalent
responsibilities. Both client/server and peer-to peer
architectures are widely used and each has unique
advantages and disadvantages. Client/server
architectures are sometimes called two-tier architectures.
Compound Compound document technology addresses the need for
Documents integration between applications, effectively allowing
different applications to work together smoothly,
producing what appears to be a single document. It
292
Glossary
293
Appendix
7. Appendix
Label Gallery Product Overview
Label Gallery is a powerful and versatile software labeling tool designed by professionals for the professionals.
No matter what your labeling needs are, Label Gallery is ready to boost your operational productivity and
profitability. Available in affordable editions – Easy, Plus and TruePro/Network/Pocket – our software offers a
scalable and versatile set of design tools, data handling functions and data integration possibilities.
294
Technical Support
8. Technical Support
Online Support
You can find latest documents, updates and workarounds for problems and Frequently Asked
Questions (FAQ) under Label Gallery microsite at
http://www.satoworldwide.com/label-gallery.aspx
If you cannot solve the problem on your own, please contact your local vendor or representative
offices listed in the topic Contact Information.
295
Technical Support
9. Contact Information
SATO GROUP OF COMPANIES
Singapore
SATO GLOBAL BUSINESS SERVICES PTE. LTD. (GBS)
438B, Alexandra Road, #09-01/02 Alexandra Technopark, Singapore 119968
TEL: +65 6271 5300 FAX: +65 6273 6011
Website: www.satoworldwide.com
Regional HQ
America
SATO INTERNATIONAL AMERICA, INC. (SIA)
10350-A Nations Ford Road, Charlotte, NC 28273, U.S.A.
TEL: +1 704 644 1650 FAX: +1 704 644 1662
Europe
SATO INTERNATIONAL EUROPE N.V. (SIE)
5A Lambroekstraat, 1831 Diegem, Belgium
TEL: +32 2 719 03 90 FAX: +32 2 719 03 99
Asia Pacific
SATO INTERNATIONAL ASIA PACIFIC PTE. LTD. (SIP)
438B, Alexandra Road, #09-01/02 Alexandra Technopark, Singapore 119968
TEL: +65 6271 5300 FAX: +65 6273 6011
AMERICAS
SATO AMERICA, INC. (SAI)
10350-A Nations Ford Road, Charlotte, NC 28273, U.S.A.
TEL: +1 704 644 1650 FAX: +1 704 644 1662
Website: www.satoamerica.com
Sales: [email protected]
Technical Support: : [email protected]
EUROPE
United Kingdom, Ireland
SATO UK
Valley Road, Harwich, Essex CO12 4RR, United Kingdom
TEL: +44 1255 2400 00 FAX: +44 1255 2401 11
Website : www.satouk.com
Sales: [email protected]
Technical Support: [email protected]
296
Technical Support
France, Algeria, Benin, Cameroon, Côte d'Ivoire, Democratic Republic of the Congo, Gabon,
Monaco, Morocco, Senegal, Tunisia
SATO FRANCE
Parc d'Activités , Rue Jacques Messager, 59 175 Templemars, France
TEL: +33 3 20 62 96 40 FAX: +33 3 20 62 96 55
Website : www.satoeurope.com/fr
Sales: [email protected]
Technical Support: [email protected]
Poland, Czech Republic, Estonia, Hungary, Latvia, Lithuania, Russia, Slovakia, Ukraine
SATO POLSKA
Panattoni Park II, Ul. Ryszarda Chomicza 3, Nowa Wieś Wrocławska,
55-080 Kąty Wrocławskie, Poland
TEL: +48 71 776 04 60 FAX: +48 71 776 04 68
Website : www.satoeurope.com/pl
Sales: [email protected]
Technical Support: [email protected]
Spain, Portugal
SATO IBERIA
Dels Corrals Nous, 35-39, Pol. Can Roqueta, 08202 Sabadell, Barcelona, Spain
TEL: +34 902 333 341 FAX: +34 902 333 349
Website : www.satoeurope.com/es
Sales: [email protected]
Technical Support: [email protected]
297
Technical Support
Italy, Bulgaria, Croatia, Greece, Macedonia, Malta, Slovenia, Turkey, Vatican City, Yugoslavia
SATO ITALY
Via Mazzini, 12, 22070 Binago (CO) Italy
Website : www.satoeurope.com/il
Sales: [email protected]
Technical Support: [email protected]
ASIA PACIFIC
Singapore
SATO ASIA PACIFIC PTE. LTD. (SAP)
438B, Alexandra Road, #09-01/02 Alexandra Technopark, Singapore 119968
TEL: +65 6271 5300 FAX: +65 6273 6011
Website : http://www.satoasiapacific.com/
Sales: [email protected]
Technical Support: [email protected]
Malaysia
SATO AUTO-ID MALAYSIA SDN. BHD. (Sales) (SAM)
SATO MALAYSIA SDN. BHD. (Production) (SMS)
No.25, Jalan Pemberita U1/49, Temasya Industrial Park, Section U1, 40150 Shah Alam,
Selangor Darul Ehsan, Malaysia
TEL: +60 3 7620 8901 FAX: +60 3 5569 4977
Website : http://malaysia.satoworldwide.com/
Sales: [email protected]
Technical Support: [email protected]
Thailand
SATO AUTO-ID (THAILAND) CO., LTD. (STC) - Japanese Website / Thai Website
292/1 Moo 1 Theparak Road, Tumbol Theparak, Amphur Muang, Samutprakarn 10270,
Thailand
TEL: +662 736 4460 FAX: +662 736 4461
Website : http://www.satothailand.co.th/
Sales: [email protected]
Technical Support: [email protected]
China
SATO SHANGHAI CO., LTD. (SSC) - Chinese Website
Room 1901-1903, International Corporate City, 3000 North Zhongshan Road, Putuo
District, Shanghai 200063, China
TEL: +86 21 3252 2777 FAX: +86 21 6309 1318
Website : http://www.satochina.com/
Sales: [email protected]
Technical Support: [email protected]
298
Technical Support
Australia
SATO AUSTRALIA PTY LTD. (SAU)
1/1 Nursery Avenue, Clayton Business Park, Clayton, VIC 3168, Australia
TEL: +61 3 8814 5330 FAX: +61 3 8814 5335
Website : http://www.satoaustralia.com/
Sales: [email protected]
Technical Support: [email protected]
New Zealand
SATO NEW ZEALAND LTD. (SNZ)
30 Apollo Drive, Mairangi Bay, Auckland, New Zealand
TEL: +64 9 477 2222 FAX: +64 9 477 2228
Website : http://www.satonewzealand.com/
Sales: [email protected]
Technical Support: [email protected]
Extensive contact information of worldwide SATO operations can be found on the Internet at
http://www.satoworldwide.com/
299