我有一个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);
答案 0 :(得分:0)
问题在于我的系统字体中安装了条形码字体。一旦我使用最新版本刷新,条形码就会扫描。