Thermal Printer

smitht

New Member
This is still a unresolve issue. I have a barcode software that I used to print data to a file to catch the commands the printer was printer. I'm trying to print to a Eltron/Zebra Thermal Parallell Printer using EPL2 Programmers Manual.

The commands are:

OD
JF
S8
D10
q800
Q1200,24

N
GW320,279,22,2
P1

I used the put command but it's not taking the commands. It prints the commands. Below is the format I'm using to print to my parallel thermal printer.

put STREAM PSHR-STRM2 control "OD" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "JF" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "S6" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "D10" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "q800" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "Q1200,24" + CHR(13) + chr(10).
 

vinod_home

Member
are you supposed to put 'control' on those put statements. I am not sure about that. did you try without them.

One more simple test you could do is. Create a text file with those comands and use the 'lp' command to send that file to the printer. See whether it prints what you want. If that works then the put command should work. I dont have a zebra printer off-hand to test it.

HTH


smitht said:
This is still a unresolve issue. I have a barcode software that I used to print data to a file to catch the commands the printer was printer. I'm trying to print to a Eltron/Zebra Thermal Parallell Printer using EPL2 Programmers Manual.

The commands are:

OD
JF
S8
D10
q800
Q1200,24

N
GW320,279,22,2
P1

I used the put command but it's not taking the commands. It prints the commands. Below is the format I'm using to print to my parallel thermal printer.

put STREAM PSHR-STRM2 control "OD" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "JF" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "S6" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "D10" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "q800" + CHR(13) + chr(10).
put STREAM PSHR-STRM2 control "Q1200,24" + CHR(13) + chr(10).
 

nothan

New Member
We use the same printers from Unix. Here is a sample that works for us.

put unformatted
"N" skip
"A" simple.auth.loc-oset + 50 ",0,0,3,1,2,N," chr(34)
replace(substr(simple.s-item.description,1,27),"\"","\\\"") chr(34) skip
"A" simple.auth.loc-oset + 50 ",40,0,3,1,1,N," chr(34)
replace(substr(simple.s-item.desc2[1],1,27),"\"","\\\"") chr(34) skip
"B" simple.auth.loc-oset + 50 ",60,0,3,2,4,60,N," chr(34)
caps(simple.s-item.cust-item) chr(34) skip
"A" simple.auth.loc-oset + 50 ",130,0,3,2,2,N," chr(34)
caps(simple.s-item.cust-item) chr(34) skip
"P" qty-lbl skip.
 
Top