axxshodiq / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Multiple labels printing randomly stop #148

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I am trying to print labels for vials on printer GX430T conected through USB.
2. Printer is installed as advised as a RAW generic text driver with name 
"zebra"
3. When i sent one label is working just perfect, when i am trying to append 
multiple labels and print, it is stock after random number of printed labels.

What is the expected output? What do you see instead?
Print all labels, I see random stop after random number of labels, after that i 
see success message twice. 

What version of the product are you using? On what operating system?
Have tried both 1.4.9.1 and 1.5.3

Please provide any additional information below.
this is a loop I am trying to print:
var json = $.parseJSON(res);
document.jzebra.append("^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR2,2~SD25^J
US^LRN^CI0^XZ");

for (var i = 0, len = json.row.length; i < len; i++) {
document.jzebra.append("^XA");
document.jzebra.append("^MMT");
document.jzebra.append("^PW900");
document.jzebra.append("^LL0300");
document.jzebra.append("^LS0");
document.jzebra.append("^FT10,70^A0N,52,52^FH\^FD"+json.row[i].val1+"^FS");
document.jzebra.append("^FT10,140^A0N,52,52^FH\^FD"+json.row[i].val2+"^FS");
document.jzebra.append("^FT10,210^A0N,52,52^FH\^FD"+json.row[i].val3+"^FS");
document.jzebra.append("^FT10,280^A0N,52,52^FH\^FD"+json.row[i].val4+", 
"+json.row[i].val5+"^FS");
document.jzebra.append("^PQ1,0,1,Y^XZ");
document.jzebra.print();
}

Thanks a lot, 
Andrei

Original issue reported on code.google.com by arac...@gmail.com on 6 Aug 2013 at 1:27

GoogleCodeExporter commented 8 years ago
You may be hitting a buffer limitation of your printer.  Do you know on average 
how many you print? You may want to spool more often.  See advanced spool 
control in the wiki.

Original comment by tres.fin...@gmail.com on 6 Aug 2013 at 1:47

GoogleCodeExporter commented 8 years ago
On the average i am looking to print 20 labels but it my hit 30 one in a while.

Available memory is: Standard: 8 MB SDRAM (3 MB available to user); 4 MB Flash 
(1.5 MB available) I was thinking that 1.5MB should be enough for couple of 
labels.

I would appreciate any link on how to spool, using JS+Windows Generic Text 
driver.

Thanks a lot.
Andrei

Original comment by arac...@gmail.com on 6 Aug 2013 at 2:05

GoogleCodeExporter commented 8 years ago
https://code.google.com/p/jzebra/wiki/TutorialWebApplet#Advanced_Print_Spooling

Original comment by tres.fin...@gmail.com on 6 Aug 2013 at 2:12