扫描仪无法读取30或以下的条形码字体 [英] Barcode font size 30 and below not read by the scanner

查看:151
本文介绍了扫描仪无法读取30或以下的条形码字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好导师,

g.DrawString(codes1,新的Font("9个免费3", 30 ),Brushes.Black,新的RectangleF(0,13,500,50),strFormat);

在上面提到的行号30(即我使用的条形码的大小)中,当我给出35且扫描器可以在几秒钟内读取的以上大小时,扫描器无法读取.我的其余代码均正常工作.此行中是否缺少任何内容.

在Advance中致谢

Hello Mentors,

g.DrawString(codes1, new Font("Free 3 of 9",30), Brushes.Black, new RectangleF(0, 13, 500, 50), strFormat);

In the above mentioned line size 30 which is the size of barcode i''m using does not read by the scanner when i give 35 and above size the scanner can read within a secs, rest of my code are working properly. Is there anything missing in this line.

Thanks in Advance

推荐答案

多年处理条形码的经验表明,字体不是一种可靠的解决方案.取而代之的是,采用一种图形条形码算法,该算法可在您的开发平台上本地呈现它们,即在您的情况下是.NET
我建议您摆脱基于条形码字体的代码,而转向图形方法.这里是一些资源:

条形码图像生成库 [ http://barcoderender.codeplex.com/ [ ^ ](免费)
http://www.idautomation.com/barcode-components/windows-forms- control/user-manual.html [ ^ ](商业)
Many years of experience dealing with barcodes showed me that fonts are not a reliable solution. Instead, go for a graphic barcode algorithm that natively renders them on your dev platform i.e. in your case .NET

I suggest you to rid of your barcode-font-based code and move to a graphic approach. Here is some resources:

Barcode Image Generation Library[^] (free)
http://barcoderender.codeplex.com/[^] (free)
How to print images, pictures, texts and high quality barcodes using VB.NET or C#[^] (commercial)
http://www.idautomation.com/barcode-components/windows-forms-control/user-manual.html[^] (commercial)


虽然Marc有一个不错的观点,但您也应该考虑让自己成为像斑马 [
While Marc has a good point, you should also consider getting yourself a professional bar code printer like one from Zebra[^]

These printers have their own API for printing bar codes that ensures crisp and clear output.

Best regards
Espen Harlinn


这篇关于扫描仪无法读取30或以下的条形码字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆