Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all

please help me as i am doing one project where in i need to create barcode to print barcode and to read barcode so how this is possible
please help me for this.
Posted

VB
http://www.codeproject.com/Articles/14409/GenCode128-A-Code128-Barcode-Generator


http://www.onbarcode.com/products/net_barcode/barcodes/code_128.html
 
Share this answer
 
Try to search for barcode library in google. You'll finds lot of them...
 
Share this answer
 
Extensive google investigation resulted in this[^].
 
Share this answer
 
hi,


Add a page(eg. barcode.aspx) ,


write this in code behind(barcode.aspx.vb) in page load,

have to download iTextsharp.dll

and use this namespace

VB
Imports iTextSharp.text.pdf



  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim bc128 As New Barcode128() 'u can use 39 instead 128

       bc128.Code ="1234" ' Your value you can get from query string or session 
       Dim bc As System.Drawing.Image = bc128.CreateDrawingImage(System.Drawing.Color.Black, System.Drawing.Color.White)

       Response.ContentType = "image/gif"
       bc.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif)

   End Sub





in another page where u want bar code,

just place image control. pass image url to already written page.

VB
Image1.ImageUrl = "BarCode.aspx"



now u can get ur barcode in the image control

regards,
pal
 
Share this answer
 
v2
It is very simple.
download Barcode Font.as
Code 128
code 3 to 9
Code 39 etc.
Install these.
and set label font to these font ,barcode automatic generated.
C#
blbl.Font = new System.Drawing.Font("Code 128", 30.75F);

you can use this method in MS word,or word pad ,Excel also.

and to read you again no need of any code if you are using USB barcode reader.
You can test this as put cusor in test box or notepad and read barcode by barcode reader.It read automatically.
 
Share this answer
 
v2

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