function print() {
var applet = document.jZebra;
if (applet != null) {
// Send characters/raw commands to applet using "append"
// Hint: Carriage Return = \r, New Line = \n, Escape Double Quotes= \"
//applet.append("A590,1600,2,3,1,1,N,\"jZebra " + applet.getVersion() + " sample.html\"\n");
//applet.append("A590,1570,2,3,1,1,N,\"Testing the print() function\"\n");
//applet.append("P1\n");
applet.append("\x1B\x40"); // 1
applet.append("\x1B\x21\x08"); // 2
applet.append(" International \r\n");
applet.append(" Company \r\n");
applet.append("\x1B\x21\x01"); // 3
applet.append(" ************************************************** \r\n");
applet.append("Info: 42972\r\n");
applet.append("Info: Kommm\r\n");
applet.append("Datum: 14:00 01/02\r\n");
applet.append(" -------------------------------------------------- \r\n");
applet.append("Info: 42972\r\n");
applet.append("Info: Kommm\r\n");
applet.append("Datum: 14:00 01/02\r\n");
applet.append(" -------------------------------------------------- \r\n");
applet.append(" \r\n");
applet.append(" \r\n");
applet.append(" \r\n");
applet.append(" \r\n");
applet.append("\x1D\x56\x41"); // 4
applet.append("\x1B\x40"); // 5
// Send characters/raw commands to printer
applet.print();
}
monitorPrinting();
}
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
http://code.google.com/p/jzebra