C# - 使用 Zebra 打印机打印的序列号未扫描

C# - Printed serial numbers using Zebra printer is not scanning

我有一个 windows 应用程序,它以 9 种条形码字体中的 3 种打印序列号。然后由 RF 扫描仪对其进行扫描。问题是我无法扫描某些序列号,例如如果序列号为 8,则无法扫描。如有任何建议,我们将不胜感激!

Font barFont = new Font("3 of 9 Barcode", 10);
Graphics g = ev.Graphics;
g.PageUnit = GraphicsUnit.Millimeter;
SolidBrush br = new SolidBrush(Color.Black);

RectangleF rect = new RectangleF(new PointF(15, 2), new SizeF(45, 4));
RectangleF rect1 = new RectangleF(new PointF(15, 5), new SizeF(45, 3));
RectangleF rect2 = new RectangleF(new PointF(15, 7), new SizeF(45, 4));

StringFormat sf = new StringFormat();
sf.LineAlignment = StringAlignment.Center;
sf.Alignment = StringAlignment.Center;

g.DrawString("*" + printSerial + "*", barFont, br, rect, sf);

问题出在我的系统字体中安装的条形码字体。一旦我用最新版本刷新,条形码正在扫描。