Our Customers
Contact Us Email: support@barcodelib.com
Home > C# Barcode Reader > How to read barcode in C#? > C#.NET Barcode Reader SDK for .NET Windows Application, Free to Download Trial Package
Download Barcode Reader for .NET Trial

C# Barcode Reader library for .NET WinForms, WPF Windows Applications

Barcode Reader for .NET is the best .NET / C# barcode image recognition component in the market.
Barcode Reader C# library supports scan and recognize linear & 2d barcode images in all .NET Desktop projects:
  • Windows Forms App (.NET Core and .NET Framework)
  • WPF Application, Class Library, Custom Control Library, User Control Library (.NET Core and .NET Framework)
  • Windows Service (.NET Framework)
  • .NET Console Applications
The following tutorial will show you how to scan, read QR Code and barcodes from existing image files using C# in your .NET WinForms, WPF, console applications.


Install DLLs

For .NET (8, 7, 6, 5) and .NET Core Windows projects

  • Add BarcodeLib.BarcodeReader.Common.dll from {downloaded package}/DLL/NET-Standard/ to your .net project reference
  • Add Nuget package System.Drawing.Common from NuGet Package Manager to your .net Windows project
For .NET Framework Windows projects

  • Add BarcodeLib.BarcodeReader.dll from {downloaded package}/DLL/NET40/ or /NET20/ to your C#.NET Windows project reference.
    Note: /NET40/ is for .NET Framework 4.0 and later version; /NET20/ is for .NET Framework 2.x and 3.x.


Read barcodes using C# in Windows projects

It is really easy to use C# to read and scan barcodes from an existing image file. The C# source code below will use a single line of code to read all Data Matrix barcodes from an existing image files. The returned list of barcode information includes only Data Matrix barcode data, but also barcode location on the image, and other information extracted.

1
2
            BarCode[] datas = BarcodeLib.BarcodeReader.BarcodeReader.ReadBarcode(
                "C://Projects//Demo-Files//datamatrix-mode-gs1-sample-data.png", BarcodeReader.BarcodeReader.DATAMATRIX);




Conclusion

Now you have learned how to quickly read barcodes from image files in C# Windows applications. You can further customize and optimze the BarcodeLib .NET Barcode Reader C# library to parse advanved barcode data and improve the recognition speed.

How to read a barcode data message from multiple barcodes in C#?
How to read valid GS1 data message from GS1 barcodes (QR Code, Data Matrix, GS1-128) using C#?
How to read Unicode characters from barcodes in C#?
How to scan multiple barcode image files using C#?





















Also provides .NET Barcode Reader, ASP.NET Barcode Reader, C# Barcode Reader, VB.NET Barcode Reader, .NET QR Code Reader, ASP.NET QR Code Reader, C# QR Code Reader, VB.NET QR Code Reader, .NET Data Matrix Reader, .NET Code 128 Reader, Java Barcode SDK, .NET Barcode SDK, ASP.NET Barcode SDK, Visual C# Barcoding, Visual Basic .NET Barcoding.