Dot matrix printer layouts
All dot matrix printer layouts use the custom function
show() to specify font style and size, line size, text justification and text to be printed. Every
show() command indicates a new row in a layout. For more information on the
show() command, see
Ticket layout functions.
show() uses seven parameters to set characteristics for the text to be displayed.
Example:
<|show('doublehigh','doublewide','italics','bold','left','20',DAILYCODE(ctod(tmp_date))|>
This generates the valid daily code using text that is twice normal height, italicized, bold and left justified.
Note: that some parameters are not defined; empty single quotes are used as placeholders so that show() receives the parameters it is looking for in the correct places. The <| and |> are required.
A blank line is generated by including an empty show():
<|show('','','','','','','40')|>
The following line prints the operator’s name in regular type on a twenty character ticket:
<|show('','','','','centered','20',alltrim(tmp_oper))|>
The following line prints the literal string, “Big Fish”:
<|show('bold','','','','centered','40','Big Fish')|>
More than one table field or literal string can be printed on one line. Add the text together with the plus sign (+), making sure all fields have been converted to character fields. The following prints the location and price right-justified with titles in condensed type on a forty character ticket:
<|show('condensed','','','','right','40',alltrim(str(extension/quantity,9,2) + alltrim(tmp_loc)|>