Sample Program for POS Printer:
Initialize Dialog
function | Open device ,initialize printer |
Method | open, claim, setDeviceEnabled, setMapMode, setBitmap |
Sample Print
function | Samples print |
Method | transactionPrint, printNormal, cutPaper |
Logo/Barcode
function | Logo and Barcode print |
Method | transactionPrint, printNormal(PTR_S_RECEIPT, ESC + "|1B")(Print the bitmap), printBarCode, printNormal, cutPaper |
Merchant
function | Supermarket bill print sample |
Method | transactionPrint, printNormal, cutPaper |
Customer
function | Supermarket bill print sample and Barcode print |
Method | transactionPrint, printNormal, printBarCode, cutPaper |
Print Receipt
function | Rotate Print sample |
Method | getCapRecPresent, getCapRecLeft90, setAsyncMode, rotatePrint, printNormal, setRecLineSpacing, printBarCode, cutPaper |
ATM Receipt
function | ATM Print sample |
Method | printNormal, cutPaper |
Account Summ
function | Account Print sample and asynchronous print |
Method | setAsyncMode, rotatePrint, printNormal, cutPaper |
DirectIO Sample
function | DirectIO Sample,print data directly |
Method | directIO, printNormal |
Other Event
function | detect status of device. |
Event | StatusUpdateEvent |
No Orientation
function | Set 2ST Orientation:Front Normal, Back Normal |
Method | transactionPrint, printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;1;1;0!v ESC[2ST;1;2;0!v |
Back Orientation
function | Set 2ST Orientation:Front Normal, Back upside down |
Method | transactionPrint, printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;1;1;0!v ESC[2ST;1;2;1!v |
Front Orientation
function | Set 2ST Orientation:Front upside down, Back Normal |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;1;1;1!v ESC[2ST;1;2;0!v |
All Orientation
function | Set 2ST Orientation:Front upside down, Back upside down |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;1;1;1!v ESC[2ST;1;2;1!v |
Mode Two Normal REC
function | 2ST Normal Receipt |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Set Pre Msg
function | Enables / disables predefined Bottom Front / Top Back / Reprint message . Sets attributes for a predefined Bottom Front / Top Back / Reprint message |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;1;4;n!v ESC[2ST;2;1;n!v ESC[2ST;2;2;n!v ESC[2ST;2;3;x;y;z!v ESC[2ST;2;4;x;y!v[text] |
No Switches
function | Don't switches Front / Back Side |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;1;3;0!v |
Switches Front and Back
function | Switches Front / Back Side |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;1;3;1!v |
Defines variable print data
function | Defines variable print data. It allows a dynamic definition of predefined variables embedded in static images. |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;4;n!v[text] |
Control Split REC
function | In the full control (Double Sided Mode with Double Side Command) mode, control the split receipt. |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;6;0!v ESC[2ST;6;1!v |
No Control Split REC
function | In the full control (Double Sided Mode with Double Side Command) mode, don't control the split receipt. |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences |
Predefined backside image
function | In Static reverse side image (Double Sided Mode with Predefined Data) mode, Downloads a specified image in back side. |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;3;0!v[directory/filename] |
Defines variable print data
function | In Static reverse side image (Double Sided Mode with Predefined Data) mode, Clear the specified image in back side. |
Method | transactionPrint,printBarcode, printNormal,printBitmap. |
Escape Sequences | ESC[2ST;3;0!v |
Sample Program for Cashdrawer:
Initial Dialog
function | Claim device . |
Method | open, claim, setDeviceEnabled. |
Open Drawer
function | Open drawer |
Method | openDrawer |
Other Event
function | detect status of device. |
Event | StatusUpdateEvent |
For more information, see: