Loading
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
Sachin SinghRank #66 · 26.2K reputationPosted Jan 20, 2023, 7:52 AM EST
Use ITextSharp
Barcode39 code39 = new Barcode39(); code39.Code = strBarCodeValue; code39.StartStopText = true; code39.GenerateChecksum = false; code39.Extended = true; MemoryStream mem = new MemoryStream(); code39.CreateDrawingImage(System.Drawing.Color.Black, System.Drawing.Color.White) .Save("E:\\abcd.png");follow this
https://www.mysamplecode.com/2012/11/itext-generate-barcode-and-qrcode.html
Abhishek ChadhaRank #402 · 6.2K reputationPosted Jan 20, 2023, 1:11 PM EST
Please check the below detailed Article to generate barcode -
https://www.c-sharpcorner.com/blogs/generate-barcode-and-barcode-reader-for-sale-and-purchase1
Naimish MakwanaRank #324 · 7.7K reputationPosted Jan 20, 2023, 10:55 PM EST
Please check below link.
https://github.com/nagilum/Code39Barcode
Thanks
Kip Hackman61 reputationPosted Jan 27, 2023, 10:53 AM EST
You can use LEADTOOLS Barcode Pro SDK technology in your application. You can leverage the BarcodeWriter class, which allows you to write any LEADTOOLS supported barcode type, including 3of9, to an image.
https://www.leadtools.com/sdk/products/barcode-pro
The sample code below will show how to write a 3of9 barcode to an image.
// Write/Generate Barcode using LEADTOOLS SDK using (RasterCodecs codecs = new RasterCodecs) using (RasterImage image = codecs.Load(@"IMAGE FILE PATH")) { BarcodeEngine barcodeEngine = new BarcodeEngine(); BarcodeData data = new BarcodeData(BarcodeSymbology.Code3Of9, "01234567890"); data.Bounds = new LeadRect(0, 0, 400, 200); barcodeEngine.Writer.WriteBarcode(image, data, null); }