BinaryKits / BinaryKits.Zpl

BinaryKits.Zpl a set of .net libraries. The project supports you in the simple creation of zebra labels. It generates the ZPL data, it is a printer description language from Zebra Technologies. ZPL II is now emulated by many label printers from different manufacturers. So with this implementation you can create labels for most printers.
MIT License
291 stars 105 forks source link

ZPL Barcode issue (High Priority) #234

Closed PradeepTiwari98 closed 1 month ago

PradeepTiwari98 commented 1 month ago

When putting below zpl code in BinaryKit then not showing any barcode due to not set any field number (FN1 to FN4) values.

^XA ^BY5^FO60,1098^BCN,270,N,N,N,A^FN1^FS ^A0N,36,36^FO207,1383^CI0^FN2^FS ^FN1^FDJVGTS0031660124034557^FS ^FN2^FDJVGTS0031660124034557^FS ^BY5^FO480,705^BCN,270,N,N,N,A^FN3^FS ^A0N,36,36^FO630,983^CI0^FN4^FS ^FN3^FD2LX2017^FS ^FN4^FD2LX2017^FS ^XZ

But when replacing ^FN1 = ^FDJVGTS0031660124034557, ^FN2 = ^FDJVGTS0031660124034557,^FN3 = ^FD2LX2017 and ^FN4 = ^FD2LX2017 values then showing barcode, Please see below code and image

ZPL Code

^XA ^BY5^FO60,1098^BCN,270,N,N,N,A^FDJVGTS0031660124034557^FS ^A0N,36,36^FO207,1383^CI0^FDJVGTS0031660124034557^FS ^FN1^FS ^FN2^^FS ^BY5^FO480,705^BCN,270,N,N,N,A^FD2LX2017^FS ^A0N,36,36^FO630,983^CI0^FD2LX2017^FS ^FN3^^FS ^FN4^^FS ^XZ

Image image

So, please confirm how to get barcode without replace field number values?

primo-ppcg commented 1 month ago

Field Numbers are not applied to the current template. This is a bug. Minimal example:

^XA
^BY3^FO60,60^BCN,100,Y,,,A^FN1^FS
^FN1^FDABC12345^FS
^XZ