Click here to Skip to main content
16,017,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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]
Posted
Updated 8-Jul-11 22:48pm
v2

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.
 
Share this answer
 
Comments
Espen Harlinn 9-Jul-11 6:25am    
Neat solution, my 5
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.
 
Share this answer
 
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"[^].
 
Share this answer
 
Comments
Member 7925220 9-Jul-11 5:38am    
i know abt wikipedia i want solution i doesnt need defination bcoz i know
Richard MacCutchan 9-Jul-11 5:46am    
The solution is easy; you study the information in Wikipedia then use that knowledge to design and write your program.
CPallini 9-Jul-11 6:47am    
It's a shame I cannot vote this. My virtual 5.
:-)
Richard MacCutchan 9-Jul-11 7:04am    
My virtual 5 back to you, now we have both virtually advanced. :))
CPallini 9-Jul-11 8:04am    
You know, we two, being native, are already far advanced with respect all those 'managed' folks. :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900