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

时间:2016-07-20 16:33:25

标签: c# windows-applications zebra-printers

我有一个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);

1 个答案:

答案 0 :(得分:0)

问题在于我的系统字体中安装了条形码字体。一旦我使用最新版本刷新,条形码就会扫描。