Printing barcodes
 
All Salesware components either use the Code39 barcode font or the Code128 barcode font. Therefore, when designing tickets that contain a barcode, you must print the barcode using one of these two barcode fonts.
Here is an example of a line of code that prints a ladder barcode using Code39 barcode on the Boca printer:
 
<|alltrim("<RC50,575><X2><NXL12>")+if(empty(tmp_edate),'*AXX','*A' +encrypt_date(tmp_edate))+encrypt_number(tmp_access)+alltrim("*")|>
 
All Code39 data must be bracketed by asterisks (*) on both sides, as shown. Because the example barcode command does not print subtext, it is necessary to print the following subtext line to indicate what characters are contained in the barcode:
 
<|alltrim("<RR><RC150,475><F1><HW3,2>")+'A'+alltrim(str(tmp_access))|>
 
The following is an example of how to print a picket fence barcode using Code39 barcode on the Boca printer:
 
<|alltrim("<RC50,575><X2><NXP12>")+if(empty(tmp_edate),'*AXX','*A'+encrypt_date(tmp_edate))+encrypt_number(tmp_access)+alltrim("*")|>
 
Code128 is an alphanumeric bar code. All Code128 data must be bracketed by carets (^). The letter O is used to select Code128 barcode. A typical ladder Code128 barcode would be sent as follows:
 
<|alltrim("<RC0,70><X2><OL3>")+if(empty(tmp_edate),'^AXX','^A'+encrypt_date(tmp_edate))+encrypt_number(tmp_access)+alltrim("^")|>
 
This would result in a 3-unit wide bar code starting on row 0, column 70. No interpretation is printed.
A typical expanded picket fence Code128 would be as follows:
 
<|alltrim("<RC0,10><X2><OP5><BI>")+if(empty(tmp_edate),'^AXX','^A'+encrypt_date(tmp_edate))+encrypt_number(tmp_access)+alltrim("^")|>
 
This code starts at row 0, column 10. The interpretation is included. The <BI> in the Boca printer command is what causes the interpretation or subtext to print.