Spire.Barcode for .NET

.NET Barcode Library - Generate, Read and Scan 1D 2D Barcode Images in C#, ASP.NET

  • Overview
  • Features
  • Guideline
  • What's New

.NET Library for Barcode
Generation and Recognition

Over 1,000,000 Developers Are Already Using Our Libraries
To Create Their Amazing Applications.

Spire.Barcode for .NET is a professional barcode library specially designed for .NET developers ( C#, VB.NET, ASP.NET, .NET Core, .Net Standard, .NET 5.0, MonoAndroid, Xamarin.iOS ) to generate, read and scan 1D & 2D barcodes. Developers and programmers can use Spire.Barcode to add Enterprise-Level barcode formats to their .net applications quickly and easily.


Spire.Barcode for .NET provides a very easy way to integrate barcode processing. With just one line of code to create, read 1D & 2D barcode, Spire.Barcode supports variable common image formats, such as Bitmap, JPG, PNG, EMF, TIFF, GIF and WMF.


Compared with the Free Spire.Barcode, the commercial edition of Spire.Barcode supports more barcode types and the scan speed has been improved significantly.

  • Types

  • Image

  • Scan

  • Demo

Barcode Types Supported

Barcode Output Images

Scan Barcode

Demo Interface

MAIN FUNCTION

Robust Barcode Recognize and Generation 1D & 2D Barcode

Developers can read most often used Linear, 2D and Postal barcodes, detecting them anywhere, with any orientation.

High performance for generating and reading barcode image

Developers can create barcode images in any desired output image format like Bitmap, JPG, PNG, EMF, TIFF, GIF and WMF.

Superior performance support for reading and writing barcode

Developers can easily set barcode image borders, border colors, style, margins and width. You can also rotate barcode images to any angle and produce high quality barcode images.

Easy Integration

Spire.Barcode for .NET can be easily integrated into any .net applications. There are two main ways to integrate Spire.Barcode in .NET applications, API Mode and library Mode.
  • API Mode is just one line of code to create, recognizes barcode.
  • Library Mode use Visual way to create barcode, then drag Spire.Barcode library to your .NET Windows or ASP.NET Form. No more code needs.

Commercial Edition $599

Compare with the Free Spire.Barcode, the commercial edition of Spire.Barcode supports more barcode types and the scan speed has been improved significantly.

Free Edition $0

Free Spire.Barcode is a community edition of Spire.Barcode which supports to work with many more barcode types.


GET STARTED

Free Trials for All Progress Solutions

Supports rich Barcode type, more than 39 different barcodes.

  • Code bar Barcode
  • Code 1 of 1 Barcode
  • Standard 2 of 5 barcode
  • Interleaved 2 of 5 barcode
  • Code 3 of 9 barcode
  • Extended Code 3 of 9 barcode
  • Code 9 of 3 Barcode
  • Extended Code 9 of 3 Barcode
  • Code 128 barcode.
  • EAN-8 barcode.
  • EAN-13 barcode.
  • EAN-128 barcode.
  • EAN-14 barcode
  • SCC14 barcode.
  • SSCC18 barcode.
  • ITF14 Barcode.
  • ITF-6 Barcode.
  • UPCA barcode.
  • UPCE barcode.
  • Postnet barcode.
  • Planet barcode.
  • MSI barcode.
  • 2D Barcode DataMatrix
  • QR Code barcode.
  • Pdf417 barcode.
  • Pdf417 Macro barcode.
  • RSS14 barcode.
  • RSS-14 Truncated barcode.
  • RSS Limited Barcode
  • RSS Expanded Barcode
  • USPS OneCode barcode.
  • Swiss Post Parcel Barcode.
  • PZN Barcode
  • OPC(Optical Product Code) Barcode.
  • Deutschen Post Barcode.
  • Deutsche Post Leitcode Barcode
  • Royal Mail 4-state Customer Code Barcode.
  • Singapore Post Barcode.
  • Aztec Barcode

We guarantee one business day Forum questions Reply.

We guarantee one business day E-mail response.

Free Customized service for OEM Users.

Skype account: iceblue-support

If you have tried out Spire.Barcode for .NET and found it useful, please consider sharing your experience with others.By sharing your testimonial with us, you will not only help others to make the right decision but will also to earn rewards from us.Please send your testimonials to sales@e-iceblue.com.

To ensure our products to be easier to use, we offer free customized demos to our customers. Please contact support@e-iceblue.com for the free demo. Make sure the demo you want meets the below requirements.
  • It relates to our components stored on E-iceblue online store.
  • It costs less than 2 hours for us to complete it. If it costs more than 2 hours, please contact our sales@e-iceblue.com

This is the list of changelogs of Spire.Barcode New release and hotfix. You can get the detail information of each version's new features and bug solutions.

Download Spire.Barcode to start a free trial:

Hot Fix Version: 7.2.0

Category ID Description
Bug SPIREBARCODE-235 Fixes the issue that the QR code position is incorrect when setting UseHttpHandlerMode="True" in an ASP web application.

Hot Fix Version: 6.6.3

Category ID Description
Bug SPIREBARCODE-214 Fixes the issue that the rectangle added in barcode became square.
Bug SPIREBARCODE-215 Fixes the issue that the scanned data was inconsistent with the data scanned by mobile phone.

Hot Fix Version: 6.3.1

Category ID Description
Bug SPIREBARCODE-213 Fixes the issue that the generated BarCode is incorrect when the data contains '-'.

Hot Fix Version: 6.1

Category ID Description
Bug SPIREBARCODE-210 Fixes the issue that the license validation was affected when setting "false" for "generatePublisherEvidence".

Hot Fix Version: 5.9.4

Category ID Description
Bug SPIREBARCODE-202
SPIREBARCODE-203
Fixes the issue that the scan results were incorrect.
Bug SPIREBARCODE-206 Fixes the issue that text and barcode overlapped when setting transparent background.

Version: 5.7.1

Category ID Description
New feature SPIREBARCODE-195 Supports getting the barcode location in the image and the barcode type.
BarcodeInfo[] barcodeInfos = BarcodeScanner.ScanInfo(imageFile);
//BarcodeInfo[] barcodeInfos = BarcodeScanner.ScanInfo(imageFile, barCodeType);
for (int i = 0; i < barcodeInfos.Length; i++)
{
//Get the barcode type
BarCodeReadType barCodeReadType = barcodeInfos[i].BarCodeReadType;
//Get the four vertices of the rectangle
Point[] vertexes = barcodeInfos[i].Vertexes;
}
Bug SPIREBARCODE-188 Fixes the issue that the application hung when scanning the image.
Bug SPIREBARCODE-190 SPIREBARCODE-194 Fixes the issue that the scan results were incorrect.

Version: 5.1.4

Category ID Description
New Feature - Adds BarcodeScan class so that different instances can be created to call the Scan method.
BarcodeScan task1 = new BarcodeScan();
task1.Scan(bitmap, rectangle, barcodeType);
Bug - Fixes the issue that the application threw an exception "object reference is not set to an instance of an object" when using BarcodeScanner.Scan method with asynchronous delegates.

Hot Fix Version: 5.1

Category ID Description
Bug SPIREBARCODE-84
SPIREBARCODE-174
Fixes the issue that the scanned data of Code128 barcode was incorrect.
Bug SPIREBARCODE-90 Fixes the issue that the application hanged when scanning the picture without barcodes.
Bug SPIREBARCODE-93 Fixes the issue that the scanned data of QR-code was empty.
Bug SPIREBARCODE-167 Fixes the issue that barcodeSettings.Code128SetMode setting was invalid

Hot Fix Version: 4.9.2

Category ID Description
New Feature SPIREBARCODE-126 Supports setting the alignment of the barcode top text.
int width = 399;
int height = 159;
BarcodeSettings bs = new BarcodeSettings();
bs.Type = BarCodeType.UPCA;
bs.Unit = GraphicsUnit.Pixel;
bs.WideNarrowRatio = 0.5f;
bs.TextFont = new Font("Arial", 20, FontStyle.Regular);
string data = "602318275035";
bs.Data2D = data;
bs.Data = data;
bs.ShowTextOnBottom = true;
bs.TopText = data;
bs.ShowTopText = true;
bs.TextAlignment = StringAlignment.Center;
bs.TopTextAligment = StringAlignment.Center;
bs.TopTextFont = new Font("Arial", 20, FontStyle.Regular);
bs.AutoResize = false;
bs.X = 3.0f;
bs.BarHeight = height * 0.6f;
bs.ImageWidth = width;
bs.ImageHeight = height;
BarCodeGenerator generator = new BarCodeGenerator(bs);
Image barImage = generator.GenerateImage();
barImage.Save(outputFile_img, ImageFormat.Png);
New Feature SPIREBARCODE-155 Supports adding custom text at the bottom of the barcode.
BarcodeSettings barsetting = new BarcodeSettings();
barsetting.Type=BarCodeType.EAN13;
barsetting.BackColor = Color.WhiteSmoke;
String data = "6901234567892";
barsetting.Data=data;
barsetting.Data2D=data;barsetting.TopText="EAN13";
barsetting.TopTextFont=new Font("Arial", 20, FontStyle.Regular);
barsetting.TopTextColor=Color.Red;
barsetting.ShowTopText=true;
barsetting.ShowTextOnBottom=true;
barsetting.TopTextAligment=StringAlignment.Center;
barsetting.BottomText="EAN";
barsetting.BottomTextFont=new Font("fangsong", 25, FontStyle.Bold);
barsetting.BottomTextColor=Color.Black;
barsetting.ShowBottomText=true;
barsetting.BottomTextAligment=StringAlignment.Far;
BarCodeGenerator generator = new BarCodeGenerator(barsetting);
Image barcode = generator.GenerateImage();
barcode.Save(outputFile_img);
Bug SPIREBARCODE-85
SPIREBARCODE-113
SPIREBARCODE-156
Fixes the issue that the scan result was incorrect.
Bug SPIREBARCODE-101
SPIREBARCODE-106
SPIREBARCODE-157
Fixes the issue that scanning the barcode failed.
Bug SPIREBARCODE-146 Fixes the issue that the application threw "NullPointerException" when scanning barcode.
Bug SPIREBARCODE-154 Fixes the issue that adding custom text did not take effect.
Bug SPIREBARCODE-156 Fixes the issue that the scan result was incorrect when scanning QR code with special characters.

Hot Fix Version: 4.5.1

Category Description
New Feature Supports .Net Standard 2.0, MonoAndroid, Xamarin.iOS platforms.