I am generating prn files for printer via php and sending them to the printer for print using
COPY filename.prn /B \\ComputerName\NetworkPrinterName
FYI this command is being executed manually.
When I am doing this the printing is happening a lot slower then when its happen directly through through an application. I primarily concerned with this issue with a Zebra Label Printer.
What happens with the software is the when I give an option to print 20 copies of label its prints them in 5-10 seconds max
When I print it through a prn file with the above command. It literally takes 1 second per label.
By the way the prn files generated by me using php and the software are 100% percent similar. I am actually using a common template in php for all the barcode which took from one of the label prn file which I generated from the software itself and just changing product related values no change in design or structure.
I looked at the EPL documentation for the zebra printer i couldn't find out issue from it and probably because I didn't understand it quite well.
My PRN File Structure
I8,A,001
Q160,008
q863
rN
S2
D10
ZT
JF
OP
R279,0
f100
N
A3,4,0,1,1,1,N,"ADWANTA TRUNK COL 100"
A28,30,1,4,1,1,N,"D-Mart"
B35,21,0,1,2,6,46,B,"1000256381"
A35,99,0,2,2,2,N,"Rs117"
A182,98,0,2,1,1,N," MRP"
A182,114,0,2,1,1,N,"Rs130"
P20
THE NO NEXT TO P(LAST LINE) IS USED TO DETERMINE THE QUANTITY. N i change it dynamically through php based on my requirements