打印可扫描的条形码Code128 [英] print a scannable barcode Code128

查看:142
本文介绍了打印可扫描的条形码Code128的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读打印条形码并不比更改字体困难。我遵循了一些建议,我得到了一个真正漂亮的打印条形码,但扫描仪不会读它。


我正在尝试使用Access 2007以Code128条形码格式打印7位数的字母数字订单号。任何人都有一个可靠的方法来做到这一点而不花很多钱?


谢谢,

Jim

I keep reading that printing barcodes is no more difficult than changing fonts. I followed some advice to that effect, and I get a real pretty printed barcode, but the scanners won''t read it.

I''m trying to use Access 2007 to print a 7-digit alphanumeric order number in Code128 barcode format. Anyone have a sure-fire way to do that without spending a lot of money?

Thanks,
Jim

推荐答案

您是否记得输出开始和停止代码?
Did you remember to output the start and stop codes?


感谢回复,Rabbit。你很乐意建议我知道我在做什么,以至于记得或遗忘任何事情。但是现在你提到了它,我确实记得在某处读过一些代码需要用数据包围数据。


我有这个Code 128 Class由Michael Ciurescu制作并由Paulo Cunha更新,我在StackOverflow上找到了。我最初尝试使用它,但只是使用一种字体即时满足的诱惑使我无法解决我在尝试使用它时遇到的任何问题。并且缺乏对其目的的理解。我想现在我理解得更好了,使用该类的Code128_Str方法最有可能计算校验位并添加你提到的那些开始和停止代码。


我现在记得,我得到的问题当我使用它时,这是一个丑陋,讨厌的东西,不是条形码。使用BarCode128字体,我的订单号打印为漂亮但不可扫描的条形码。使用BarCode128字体在文本框中使用Code128_Str(ordernumber)只是搞得一团糟。


我不知道如何解决这个烂摊子。


Jim
Thanks for the reply, Rabbit. You''re kind to suggest I know what I''m doing well enough to remember or forget anything about it. But now that you mention it, I do remember reading somewhere about having to surround the data with some codes.

I have this Code 128 Class made by Michael Ciurescu and updated by Paulo Cunha that I found on StackOverflow. I tried to use it initially but the lure of instant gratification by just using a font distracted me from working through whatever problem I had when I tried to use it. And a lack of understanding of the purpose of it. I think now I understand better, using the Code128_Str method of that class most likely calculates the check digit and adds those start and stop codes you mentioned.

I remember now, the problem I got when I used it was an ugly, nasty thing that was not a barcode. Using the BarCode128 font, my order number prints as a nice looking, but un-scannable barcode. Using Code128_Str(ordernumber) in the textbox with the BarCode128 font just made a mess.

I''m not sure how to resolve the mess.

Jim


你可以仍然使用该字体,因为3个开始代码和停止代码可以用ascii字符表示,因此它们应该以字体显示。您只需要输出正确的字符。


如果滚动到此表的底部,可以在那里找到开始和停止代码。 https://en.wikipedia.org/wiki/Code_128#Bar_code_widths]


编辑:还有一件事,你是否计算了校验和?
You can still use the font because the 3 start codes and the stop code can be represented by ascii characters so they should be available in the font. You just need to output the correct character.

If you scroll to the bottom of this table, the start and stop codes can be found there. https://en.wikipedia.org/wiki/Code_128#Bar_code_widths]

One more thing, did you calculate the checksum?


这篇关于打印可扫描的条形码Code128的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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