如何从128C条形码中省略前导0? [英] How do I omit the leading 0 from a 128C bar code?
问题描述
如果我以12345为例,在文本条形码的属性中,输出为012345。
If I put 12345, for example, in a "text" bar code's property, the output is 012345.
这个0是问题。我如何删除这个?
This "0" is the problem. How I can remove this?
我使用的是Delphi 2010和FastReport 4.9.72。
I'm using Delphi 2010 and FastReport 4.9.72.
推荐答案
代码128C条形码需要是偶数位数字。这是设计的。
A Code 128C barcode needs to be an even number of digits. This is by design.
数字和结果输出之间存在1:1映射,输出为2位对齐。在 1
的情况下,该号码的代码128C表示为 01
There is a 1:1 mapping between the numbers and the resulting output, and the output is 2-digit aligned. In the case of 1
the Code 128C representation of this number is 01
如果值为 12
则底层代表将为 12
if the value was 12
then the underlying representation would be 12
,所以数字 628
只能由 0628
关于代码128 的维基百科文章解释了128A,128B和128C编码之间的区别。
The wikipedia article about Code 128 explains the differences between the 128A, 128B and 128C encodings.
这篇关于如何从128C条形码中省略前导0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!