i want to generate bar code when i type a number on text box. like 1.1.1.1. do you have any idea how can i generate bar code in windows application and store in DB.
its urgent for me.
thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ring ZhongRank #6,843 · 255 reputationPosted Dec 8, 2013, 9:55 PM EST
here is the link for the third party api, it's completely free and useful. Hope it helps.
http://freebarcode.codeplex.com/
Jignesh TrivediRank #16 · 50.3K reputationPosted Dec 8, 2013, 10:06 PM EST
as per my knowledge, the bar code font is also available. with the help of this you can generate bar code of any particular text..
http://www.barcodesinc.com/free-barcode-font/
hope this will help you.
makaveil jojo12 reputationPosted Dec 16, 2013, 5:47 PM EST
Some sample code of generating barcode in C# for you:
using KA.Barcode.Bean; BarCode barcode = new BarCode(); barcode.Symbology = KeepAutomation.Barcode.Symbology.Code39; barcode.CodeToEncode = "111222333"; barcode.ChecksumEnabled = true; barcode.X = 1; barcode.Y = 50; barcode.BarCodeWidth = 100; barcode.BarCodeHeight = 70; barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree90; barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel; barcode.DPI = 72; barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif; barcode.generateBarcodeToImageFile("C://barcode-code39-csharp.gif"); /* Output barcode images to different objects barcode.generateBarcodeToStream("Stream Object"); barcode.generateBarcodeToGraphics("Graphics Object"); barcode.generateBarcodeToGraphics("HttpResponse Object"); */Nazeer2 reputationPosted Jun 11, 2014, 10:27 PM EDT
There are lots of great and easy sdks that support barcodes, the support ranges from basic support like ZBar to advanced support like leadtools.
If you need more details or samples, the internet is full of articles of how to generate barcodes.
Regarding saving to the database, once you generate the barcode you can easily save it to the database.