How to: |
Reference: |
You can print sheets of laser printer mailing labels by dividing each page into a matrix of sub-pages, each corresponding to a single label. Each page break in the report positions the printer at the top of the next label.
Multi-pane printing places a whole report on a single printed page. You can create columns or rows so that when text overflows on one page, it appears in the next column or row on the same page rather than on the next page.
These features apply to a PDF or PS report.
In addition to the attributes in the table, you can use standard margin attributes (for example, LEFTMARGIN or TOPMARGIN) to position the entire sheet of labels at once, creating an identical margin for each sheet.
Attribute |
Description |
Applies to |
---|---|---|
PAGEMATRIX |
Sets the number of columns and rows of labels on a page. |
PS |
ELEMENT |
Sets the width and height of each label, expressed in the unit of measurement specified by the UNITS parameter. |
PS |
GUTTER |
Sets the horizontal and vertical distance between each label, expressed in the unit of measurement specified by the UNITS parameter. |
PS |
MATRIXORDER |
Sets the order in which the labels are printed. |
PS |
LABELPROMPT |
Sets the position of the first label on the mailing label sheet. |
PS |
[TYPE=REPORT,] PAGEMATRIX=(c r), ELEMENT=(w h), [GUTTER=(x y),] [MATRIXORDER={VERTICAL|HORIZONTAL},] [LABELPROMPT={OFF|ON},] $
where:
Applies the settings to the entire report. Not required, as it is the default.
Is the number of columns of labels across the page.
Enclose the values c and r in parentheses, and do not include a comma between them.
Is the number of rows of labels down the page.
Is the width of each label.
Enclose the values w and h in parentheses, and do not include a comma between them.
Is the height of each label.
Is the distance between each label.
Is the horizontal distance between each label.
Enclose the values x and y in parentheses, and do not include a comma between them.
Is the vertical distance between each label.
Is the order in which the labels are printed.
Prints the labels down the page.
Prints the labels across the page.
Is the position of the first label on the mailing label sheet.
Starts the report on the first label on the sheet. OFF is the default value.
Prompts you at run time for the row and column number at which to start printing. All remaining labels follow consecutively. This feature allows partially used sheets of labels to be re-used.
The following report prints on 81/2 x 11 sheets of address labels.
SET ONLINE-FMT = PDF TABLE FILE EMPLOYEE BY LAST_NAME NOPRINT BY FIRST_NAME NOPRINT ON FIRST_NAME PAGE-BREAK HEADING "<FIRST_NAME <LAST_NAME" "<ADDRESS_LN1" "<ADDRESS_LN2" "<ADDRESS_LN3" ON TABLE SET PAGE-NUM NOPAGE ON TABLE SET STYLE LABEMP END
The labels have the following dimensions, defined in the StyleSheet LABEMP:
UNITS=IN, PAGESIZE=LETTER, LEFTMARGIN=0.256, TOPMARGIN=0.5, PAGEMATRIX=(2 5), ELEMENT=(4 1), GUTTER=(0.188 0), $
The first page of labels prints as follows:
This request divides the first report page in two columns so that the second report page appears in the second column of the first page. A PAGE-BREAK creates a multi-page report for the purpose of this example.
SET ONLINE-FMT = PDF TABLE FILE EMPLOYEE PRINT LAST_NAME AND CURR_SAL BY
DEPARTMENT ON DEPARTMENT PAGE-BREAK HEADING "PAGE <TABPAGENO" ON TABLE SET STYLE * UNITS=IN, PAGESIZE=LETTER, PAGEMATRIX=(2 1), ELEMENT=(3.5 8.0), MATRIXORDER=VERTICAL, $ TYPE=REPORT, SIZE=8, $ ENDSTYLE END
The report prints as: