C# Code 39 Barcode Reader
How to scan, read Code 39 barcodes in .NET, C#, ASP.NET & VB.NET applicationss

Barcode Reader for C#.NET > How to read barcode in C#? > Scan, read, Code 39 barcodes in C#


  • 100% written in Visual C#.NET 2.0
  • Support .NET 2.0, 3.0, 3.5 and later version
  • Have fast reading speed
  • Support reading distorted Code 39 barcode images
  • Read Code 39 barcodes in any angles
  • Read multiple Code 39 barcodes in a single image file
  • Support GIF, JPEG, PNG & TIFF formats
Learn how to read Code 39 barcodes using C# in ASP.NET, WinForms, WPF, VB.NET & Console Applications This tutorial helps you implement Code 39 barcode scanning in your .NET projects. You will learn how to install the library, read standard Code 39 barcodes, and process barcodes with checksum validation.

The KeepAutomation C# Code 39 Reader SDK is a high-performance linear and 2D barcode recognition library for the .NET platform. It supports fast and accurate decoding of Code 39 barcodes across all .NET application types.
Download Code 39 Barcode Reader for .NET
Please download KA.Barcode Reader for .NET free of charge. In the unzipped trial package, you will find:
  • KeepAutomation.BarcodeReader.dll
  • End user license agreement, user manual and order page
Note that: This trial version can be used infinitely. But the first character of a barcode symbology is decoded randomly by our .NET Barcode Reader.


Read Code 39 Barcodes in a C# Class

You can quickly decode Code 39 barcodes using the BarcodeScanner.Scan() method. Execution Phase
  1. Call the static Scan method
  2. Pass the image file path as the first parameter
  3. Specify BarcodeType.Code39 as the target barcode type
  4. Retrieve decoded results as a string array
Note:
  • Check the returned array for valid decoded text
  • Confirm the output matches the original encoded data


Scan Code 39 Barcodes with Checksum

The Code 39 standard does not include built-in checksum rules. If your Code 39 barcode uses a check digit, you can enable validation using ScanOptions.

How to Enable Checksum Validation
  1. Create a ScanOptions object for Code 39
  2. Set Code39WithCheckCharacter = true
  3. The library will validate the checksum and return data without the check digit
  4. Use GetBarcodeProps() to retrieve the actual checksum value
Available Code 39 Properties
  • HasChecksum: Indicates whether a checksum is present
  • Checksum: The numeric checksum value
  • ShowChar: The readable checksum character








Frequently Asked Questions

What purposes does Code 39 serve?

This barcode is a popular choice for inventory management, electronics, and government documentation because it supports alphanumeric data. It's widely used in inventory management, government, military, and electronics sectors. Using KeepAutomation C# Code 39 barcode reader library, you can quickly scan, decode Code 39 codes in C# ASP.NET Core, MVC, WinForms and WPF for inventory management, government, military, and electronics sectors applications.

What does Code 39 refer to in barcode devices?

Code 39 is a linear barcode symbology that holds data in as many as 43 characters, including uppercase letters, numbers, and special symbols. Its extended variant works with the complete 128-character ASCII set. Using C# Code 39 Reader and Scanner SDK, you can quickly decode Code 39 codes in Visual Studio .NET projects.

How is Code 39 interpreted by a scanner?

For decoding Code 39 text from a barcode image, a barcode scanner (device or reader software) scans all bar and space units of the Code 39 barcode. The scanner reads the barcode by measuring the widths of the bars and spaces. Each character is represented by a unique pattern of nine elements (five bars and four spaces), which the device converts into text. Using C# Code 39 Barcode Reader component api, you will scan and recognize all Code 39 barcodes from image files in C# class.

How are Code 39 and Code 128 barcodes different?

Code 128 has to have a checksum and remains scannable if slightly damaged. If a Code 128 barcode gets damaged, it could still be scanned. Code 39, which typically omits a checksum, is less forgiving, but a damaged Code 39 without one won't work with scanners. C# Code 39 barcode reader library supports both Code 39 and Code 128 barcode recognition in C# ASP.NET and Windows applications.