Lex

Lex

  • NA
  • 20
  • 0

Printing barcodes

Jun 30 2010 11:30 AM

I'm currently working on a barcode printer, I  use the serialPort.Write to write to the printer, but when I try to scan the barcode in after printing, it doesn't want to read.
 
 

serialPort.Write("N" + "\n" + "B0,0,0,E30,4,3,40,B,\"" + barcode + "\"\n" + "A15,95,0,4,1,1,N,\"" + product + "\"\n" + "P" + i + ",1" + "\n"); 

Is the code that I use to print the barcode and the product name on the next line. The E30 means I should print EAN 13, but our EAN 13 scanner still can't read the barcode.

Answers (2)