Avery-dennison Platinum 6039 JavaScript Instrukcja Użytkownika Strona 82

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 94
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 81
A-2 Programmer’s Manual
var XUP_NONE = 1; // Do not send the preamble for UPC /
//EAN barcodes.
var XUP_SYSCHAR = 2; // Transmit a system character along
//with the decoded data.
var XUP_SYSCOUNT = 3; // Transmit a system character and
//country code along with the decoded
//data.
var KSM_NORMAL = 1; // keyboard shift mode - normal
var KSM_FUNCTION = 2; // keyboard shift mode - function
var KSM_LOWERALPHA = 3; // keyboard shift mode - lower alpha
var KSM_UPPERALPHA = 4; // keyboard shift mode - upper alpha
function print(code, qty) {var fmt =
"{F,1,A,R,E,200,200,\"UPCA\"|C,150,49,0,50,8,8,A,L,0,0,\"M6
0//39 Platinum\",1|
B,1,12,F,25,28,1,4,100,7,L,0|T,2,22,V,133,1,0,1
,1,1,O,C,0,0|}";
var labelHead = "{B,1,N,1|E,0,0,1,1,0,1|1,\""
var labelTail = "\"|2,\"Toothpaste\"|}";
var count = 0;
Printer.Print(fmt);
qty = parseInt(qty);
if (qty > 0) {
while (count < qty) {
if (Printer.IsBatteryOKToPrint == false) {
alert("Low Battery");
}
else {
count = count + 1;
Printer.Print(labelHead + code + labelTail);
}
}
}
else {
Printer.Print(labelHead + code + labelTail);
}
var status = Printer.LastPrintStatus;
if ((status != 0) && (status != 1) && (status != 412)) {
alert("Printer Error # " + status);
}
}
Przeglądanie stron 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 93 94

Komentarze do niniejszej Instrukcji

Brak uwag