Install Barcode Generator on .NET 5+ Projects
For WinForms, WPF desktop apps
- Add OnBarcode.Barcode.Common.dll from folder "{downloaded package}/dll/NetStandard2.0/" to .NET project reference.
- You need manually add System.Drawing.Common from "NuGet Package Manager" to .NET Core project reference.
Through NuGet
PM > Install-Package OnBarcode.Barcode.Generator
For ASP.NET Core web apps
For web apps running on Windows Apps
For web apps running on non-Windows (Linux, MacOS, ...)
- Add OnBarcode.Barcode.Common.dll and OnBarcode.Barcode.ASPNETCore.dll (for ASP.NET Core web streaming only) from folder "{downloaded package}/dll/NetStandard2.0/" to .NET project reference.
- You need manually add System.Drawing.Common from "NuGet Package Manager" to .NET Core project reference.
PM > Install-Package OnBarcode.Barcode.Generator.AspNet.Core
For web apps running on non-Windows (Linux, MacOS, ...)
- Add OnBarcode.Barcode.Common.Skia.dll and OnBarcode.Barcode.ASPNETCore.Skia.dll (for ASP.NET Core web streaming only) from folder "{downloaded package}/dll/NetStandard2.0/" to .NET project reference.
- You need manually add SkiaSharp from "NuGet Package Manager" to .NET Core project reference.
PM > Install-Package OnBarcode.Barcode.Generator.AspNet.Core.SkiaSharp
For .NET Class library, Console, and other app
For .NET Core (5+) apps on Windows Apps
For .NET Core apps on non-Windows (Linux, MacOS, ...)
- Add OnBarcode.Barcode.Common.dll from folder "{downloaded package}/dll/NetStandard2.0/" to .NET project reference.
- You need manually add System.Drawing.Common from "NuGet Package Manager" to .NET Core project reference.
PM > Install-Package OnBarcode.Barcode.Generator
For .NET Core apps on non-Windows (Linux, MacOS, ...)
- Add OnBarcode.Barcode.Common.Skia.dll from folder "{downloaded package}/dll/NetStandard2.0/" to .NET project reference.
- You need manually add SkiaSharp from "NuGet Package Manager" to .NET Core project reference.
PM > Install-Package OnBarcode.Barcode.Generator.SkiaSharp
Install Barcode Generator on .NET Framework (4.x, 3.x, 2.x) Projects
For .NET Framework 4.x applications
For .NET Framework 3.x or 2.x applications
- Add OnBarcode.Barcode.ASPNET.dll or OnBarcode.Barcode.WinForms.dll from folder "{downloaded package}/dll/Net40/" to .NET project reference.
For .NET Framework 3.x or 2.x applications
- Add OnBarcode.Barcode.ASPNET.dll or OnBarcode.Barcode.WinForms.dll from folder "{downloaded package}/dll/Net20/" to .NET project reference.
Install through NuGet
For ASP.NET Framework web application
For Windows Forms, WPF, Console (.NET Framework) application
PM > Install-Package OnBarcode.Barcode.Generator.AspNet.Framework
For Windows Forms, WPF, Console (.NET Framework) application
PM > Install-Package OnBarcode.Barcode.Generator.WinForms.Framework
Install Licensed Barcode Generator C# Library
Install licensed barcode generator dlls are the same as trial version dlls. However you need remove trial version dlls from your .NET project resouces first.
- Remove all trial version barcode generator dlls from your .net project reference
- Clean your .NET project cache data files, which may contail trial version of dlls
- Install licensed dlls as described above
After you have installed the OnBarcode Barcode Generator C# library, you can start enable barcode generation features in your .NET projects.
We have provided step by step barcode library setup tutorials for .NET projects.
We have provided step by step barcode library setup tutorials for .NET projects.
Download & Install Free OCR-B, OCR-A Font
Most of the linear barcode formats do not require specific font for the barcode text label printing. Some industry standard will recommend its preferred font.
The GS1 System recommends all of its supported linear barcode use OCR-B to print barcode text.
OCR-B font
OCR-A font
The GS1 System recommends all of its supported linear barcode use OCR-B to print barcode text.
- EAN/UPC: including EAN-13, EAN-8, UPC-A, UPC-E, 2 or 5 digits add-on
- ITF-14
- GS1-128
- GS1 DataBar
OCR-B font
OCR-A font
Install Font Filess
- Open File Explorer.
- Navigate to and open the C:\Windows\Fonts folder in File Explorer.
- Copy, paste one or more font(s) into the Fonts folder.
