From 486459a1072ab3e2058b4f7fd59771c32a373b5e Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Thu, 17 Feb 2022 17:20:57 +0100 Subject: [PATCH] removed width in barcode cus its not working --- Instructions/BarcodeInstruction.cs | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/Instructions/BarcodeInstruction.cs b/Instructions/BarcodeInstruction.cs index 0f85f57..9839c87 100644 --- a/Instructions/BarcodeInstruction.cs +++ b/Instructions/BarcodeInstruction.cs @@ -14,8 +14,8 @@ public class BarcodeInstruction : BaseInstruction [JsonConverter(typeof(JsonStringEnumConverter))] public BarcodeCode barcodeCode { get; set; } = BarcodeCode.CODE_B; - [JsonConverter(typeof(JsonStringEnumConverter))] - public BarWidth width { get; set; } = BarWidth.Default; + // [JsonConverter(typeof(JsonStringEnumConverter))] + // public BarWidth width { get; set; } = BarWidth.Default; public int height { get; set; } = 0; @@ -24,11 +24,10 @@ public class BarcodeInstruction : BaseInstruction var e = new EPSON(); var commands = new List(); - if (width != BarWidth.Default) - { - commands.Add(e.SetBarWidth(width)); - - } + // if (width != BarWidth.Default) + // { + // commands.Add(e.SetBarWidth(width)); + // } if (height > 0) { @@ -37,16 +36,6 @@ public class BarcodeInstruction : BaseInstruction commands.Add(e.PrintBarcode(barcodeType, barcode, barcodeCode)); - if (width != BarWidth.Default) - { - commands.Add(e.SetBarWidth(BarWidth.Default)); - } - - if (height > 0) - { - commands.Add(e.SetBarcodeHeightInDots(0)); - } - return commands; } }