diff --git a/src/BinaryKits.Zpl.Label.UnitTest/BarcodeTest.cs b/src/BinaryKits.Zpl.Label.UnitTest/BarcodeTest.cs index fc9ec80a..ff080acd 100644 --- a/src/BinaryKits.Zpl.Label.UnitTest/BarcodeTest.cs +++ b/src/BinaryKits.Zpl.Label.UnitTest/BarcodeTest.cs @@ -21,7 +21,7 @@ public void Barcode39() Debug.WriteLine(output); Assert.IsNotNull(output); - Assert.AreEqual("^XA\n^LH0,0\n^CI28\n\n^FO100,100\n^BY2\n^B3N,N,100,Y,N\n^FD123ABC^FS\n^XZ", output); + Assert.AreEqual("^XA\n^LH0,0\n^CI28\n\n^FO100,100\n^BY2,3\n^B3N,N,100,Y,N\n^FD123ABC^FS\n^XZ", output); } [TestMethod] @@ -37,7 +37,7 @@ public void Barcode128() Debug.WriteLine(output); Assert.IsNotNull(output); - Assert.AreEqual("^XA\n^LH0,0\n^CI28\n\n^FO100,300\n^BY2\n^BCN,100,Y,N\n^FD123ABC^FS\n^XZ", output); + Assert.AreEqual("^XA\n^LH0,0\n^CI28\n\n^FO100,300\n^BY2,3\n^BCN,100,Y,N\n^FD123ABC^FS\n^XZ", output); } [TestMethod] @@ -53,7 +53,7 @@ public void BarcodeEan13() Debug.WriteLine(output); Assert.IsNotNull(output); - Assert.AreEqual("^XA\n^LH0,0\n^CI28\n\n^FO100,300\n^BY2\n^BEN,100,Y,N\n^FD123456^FS\n^XZ", output); + Assert.AreEqual("^XA\n^LH0,0\n^CI28\n\n^FO100,300\n^BY2,3\n^BEN,100,Y,N\n^FD123456^FS\n^XZ", output); } } } diff --git a/src/BinaryKits.Zpl.Label/Elements/ZplBarcode.cs b/src/BinaryKits.Zpl.Label/Elements/ZplBarcode.cs index e78138de..6600f706 100644 --- a/src/BinaryKits.Zpl.Label/Elements/ZplBarcode.cs +++ b/src/BinaryKits.Zpl.Label/Elements/ZplBarcode.cs @@ -55,7 +55,7 @@ protected string RenderFieldOrientation() protected string RenderModuleWidth() { - return $"^BY{ModuleWidth}"; + return $"^BY{ModuleWidth},{WideBarToNarrowBarWidthRatio}"; } protected bool IsDigitsOnly(string text)