Progress
Results Administration
and Development Guide


Standard Label Formats

The results.l file contains several lines that define the standard label formats available for use in the label view of a query. Each line that defines a label format has the following syntax:

SYNTAX
label[integer]= "code[|code]..." 

The integer argument is a unique integer value that identifies the label format definition. The integers used to identify label formats must be sequential. The code parameter is a special code followed by a value that defines the label format. All codes specified for a label format must be enclosed within a single set of double quotes and must be separated using a vertical line ( | ). Table C–3 provides information about the different definitional codes for a label format.

Table C–3: Definitional Codes for Label Formats
Code
Description
a=
Specifies the number of labels across the printed page. The default value is 1.
c=
Specifies a name for the label format. This name represents the format in Results. Must be a unique name.
d=
Specifies the width and height of the label in inches. For example, 3-1/2 x 1. Separate the width and height values using an x. The width value must be first. Specifies fractional values by separating the numerator and denominator values with a forward slash ( / ). If the fractional value is preceded by a whole number, separate the whole number from the fraction using a hyphen (-).
h=
Specifies the height of the label in lines.
l=
Specifies the number of lines between labels. The default value is 1.
s=
Specifies the horizontal space between labels in characters. The default value is 0.
w=
Specifies the width of the label in characters.
x=
Specifies the left margin of the paper in characters. The default value is 0.

The following excerpt from the result.l file shows some label format definitions:

label[1]= "*Standard Label Sizes" 
label[2]= "d=3-1/2 x 15/16 in|w=35|h=5|c=1-wide" 
label[3]= "d=3-1/2 x 15/16 in|w=35|h=5|a=2|s=2|c=2-wide" 
                  . 
                  . 
                  . 
label[14]= "*Avery Catalog Labels" 
label[15]= "d=3-1/2 x 15/16 in|w=35|h=5|c=Avery 4145 Address" 
label[16]= "d=3-1/2 x 15/16 in|w=35|h=5|c=Avery 4010 Address (roll)" 

If the first code parameter of a label format definition begins with an asterisk (*), Results ignores the definition and moves on to the next definition.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095