Hi
how to generate bar code in asp.net,please suggest me anyone
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
alice yangRank #2,329 · 607 reputationPosted Apr 25, 2017, 11:44 PM EDT
Ranjeet PatraRank #1,436 · 1.1K reputationPosted Apr 26, 2017, 5:00 AM EDT
Maen BadwanRank #2,520 · 556 reputationPosted Apr 27, 2017, 6:37 AM EDT
You can try using BarcodeReader class from LEADTOOLS to read one or more barcodes from an image.
For example, the following code reads all barcodes in an image:
+------------------------+
using(RasterImage image = codecs.Load(imageFileName, 0, CodecsLoadByteOrder.BgrOrGray, 1, 1))
{
// Read all the barcodes in this image
BarcodeData[] barcodes = reader.ReadBarcodes(image, LogicalRectangle.Empty, 0, null);
// Print out the barcodes we found
Console.WriteLine("{0} contains {1} barcodes", imageFileName, barcodes.Length);
for(int i = 0; i < barcodes.Length; i++)
{
BarcodeData barcode = barcodes[i];
Console.WriteLine(" {0} - {1} - {2}", i + 1, barcode.Symbology, barcode.Value);
}
Console.WriteLine("-----------------");
}
+------------------------+
You can use the above code in your ASP.NET server side code, or in a web-service.
You can find more details in the following online links:
https://www.leadtools.com/help/leadtools/v19m/dh/ba/barcodereader.html
Also, check the following online barcode demo:
http://demo.leadtools.com/JavaScript/Barcode/index.html
Rajeesh MenothRank #118 · 18.4K reputationPosted Apr 25, 2017, 11:50 PM EDT