removed width in barcode cus its not working
This commit is contained in:
parent
8829226cd5
commit
486459a107
@ -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<byte[]>();
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user