You must embed the escape sequences with the 4GL statements. Here's an exaple where I print the barcode for 5 data elements using an HPL laserjet printer. THis is old code, so I don't remember the model number.
The point is you'll have to check your printer documentation:
CODE- LET prt_cmd_str =
- ASCII 27,"(0Y", # Select barcode font
- ASCII 27,"(s0p8.1h12v0s0b0T", # Pitch set.
- ASCII 27, "&a9R", # Line 9.2
- ASCII 27,"&a6C", # Column 6
- "*",r_itmrcpt.receiptid CLIPPED,"*",
- ASCII 27, "&a12R", # Line 12.2
- ASCII 27,"&a6C", # Column 6
- "*",r_itmrcpt.pallet CLIPPED,"*",
- ASCII 27, "&a15R", # Line 15.2
- ASCII 27,"&a6C", # Column 6
- "*",r_itmrcpt.mm CLIPPED,"*",
- ASCII 27, "&a18R", # Line 18.2
- ASCII 27,"&a6C", # Column 6
- "*",r_itmrcpt.item CLIPPED,"*",
- ASCII 27, "&a21R", # Line 21.2
- ASCII 27,"&a6C", # Column 6
- "*",dispqty USING "&&&&&&","*",
- ASCII 27,"(0U", # Ascii
- ASCII 27, "&a24R", # Line 24
- ASCII 27,"(s0p10h6v0s0b3T"
-
- PRINT prt_cmd_str CLIPPED
複製代碼
http://www.iiug.org/software/index_I4GL.html |