条形码生成器&读者 [英] barcode generator & reader

查看:138
本文介绍了条形码生成器&读者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我需要一些有关如何创建条形码代码的信息。

实际上我正在创建条形码应用程序。 : -

1 .-- AlphaNumeric条形码生成器。

2--取值从一位到n位意味着: -

有时候它仅适用于两位数: - 12

或有时12位数字如:-123456789012

或有时n位数字如: - 00000000000 ......

等等...........



所以请帮忙摆脱这个

Navin Kumar

软件培训生

[已删除] @ live.com





[edit]永远不要在任何论坛中发布您的电子邮件地址,除非您真的喜欢垃圾邮件!如果有人回复你,你会收到一封电子邮件让你知道 - OriginalGriff [/ edit]

解决方案

至少你应该在CP中搜索,我发现这个



C#条码生成器WebService [< a href =http://www.codeproject.com/KB/cpp/wsbarcode.aspxtarget =_ blanktitle =New Window> ^ ](使用C#中的Web服务创建code39条码)



你也可以在谷歌找到更多。


好的,让我们来看看如何处理这个问题。

1.您从Sr Pallini提供的链接中了解Code39规则

1.1每个字符由一系列黑色或白色条形表示。

1.1。 1将窄条宽度设置为所需的最小宽度(1像素?)

1.1.2将宽条宽度设置为窄宽度的两倍(或三倍)

1.2对于角色模式中的每个条形:

1.2。 1如果条形图为白色,则将条形图的宽度向右移动

1.2.2如果条形图为黑色,则绘制一个黑色矩形,高度为3或4个字符,宽度为所需宽度。

1.2.3计算此条形码集的总宽度

1.2.4打印以宽度为中心的条形码下面的实际字符

1.2.5重复每个角色



考虑一下你需要创建的变量以及解决这个问题需要采取的步骤。一旦你的解决方案写下来,编写所需的实际代码应该是一件相当简单的事情。


会员7925220写道:

我需要一些关于如何创建条形码code39的信息



这里是您所需的全部信息:维基百科的Code 39页面 [ ^ ]。


Hello,
I need some information about how to create barcode code39.
Actually I am creating bar code application in viz. :-
1.-- AlphaNumeric barcode generator.
2-- Takes Value from once place to n digits means:-
some times its only for two digit like :- 12
or some times 12 digits like:-123456789012
or some times n digits like:- 00000000000...
and so on ...........

so please help to getting out of this
Navin Kumar
Software Trainee
[DELETED]@live.com


[edit]Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know - OriginalGriff[/edit]

解决方案

At least you should have searched in CP, I found this

C# Barcode Generator WebService[^](Create a code39 barcode using a webservice in C#)

Also you can find more in Google.


OK, let's see how to approach the problem.
1. You know the Code39 rules from the link provided by Sr Pallini
1.1 Each character is represented by a series of black or white bars.
1.1.1 Set the narrow bar width equal to the minimum width required (1 pixel?)
1.1.2 Set the wide bar width to twice (or three times) the narrow width
1.2 For each bar in the character's pattern:
1.2.1 If bar is white move the origin right by the width of the bar
1.2.2 If bar is black then draw a black rectangle 3 or 4 characters in height and the width required.
1.2.3 Calculate the total width of this barcode set
1.2.4 Print the actual character below the barcode centred in the width
1.2.5 Repeat for each character

Give some thought to the variables you need to create and the steps you need to take to solve this problem. Once you have your solution written down it should be a fairly simple matter to write the actual code required.


Member 7925220 wrote:

I need some information about how to create barcode code39


Here you are ALL the required info: "Code 39 page at Wikipedia"[^].


这篇关于条形码生成器&amp;读者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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