Berikut adalah contoh cara print barcode dengan menggunakan printer SATOCG408
MSComm2.Output = ESC + "A"
MSComm2.Output = ESC + "%2"
MSComm2.Output = ESC + "H" + "510" 'spasi garis barcode
MSComm2.Output = ESC + "V" + "0135"
MSComm2.Output = ESC + "D" + "2" + "03" + "090" + "20110701772"
MSComm2.Output = ESC + "A"
MSComm2.Output = ESC + "%2"
MSComm2.Output = ESC + "H" + "0510" 'spasi garis kode barang
MSComm2.Output = ESC + "V" + "0035"
MSComm2.Output = ESC + "L0101"
MSComm2.Output = ESC + "P01"
MSComm2.Output = ESC + "S" + "20110701772"
MSComm2.Output = ESC + "Z"
MSComm2.Output = ESC + "Q1"
MSComm2.Output = ESC + "Z"
0 Komentar:
Posting Komentar