VB.NET Barcode Data Encoding Tutorial
Use VB.NET to encode Unicode & GS1-compatible barcode data
Download .NET Barcode Generator Free Evaluation
Purchase .NET Barcode Generator Suite License
It works well throughout my whole project. And barcoding features are easy to be implemented with the help of guide documents.
- Kevin Cox, US

How to encode Unicode and valid data to generate GS1-compatible barcode using VB.NET

  • Professional barcode data encoding class library used for VB.NET applications
  • Mature VB.NET 1d & 2d barcode generating / implementing component since 2004
  • High-quality barcode encoder for .NET, VB.NET, ASP.NET web service / html page, VB.NET applications
  • Offer free download & simple VB.NET sample codings to encode GS1-compatible barcode data
  • Able to encode Unicode and generate linear & 2d bar code images in VB.NET barcoding system
  • Easy to encode,generate barcode data to show barcode in VB.NET WinForms, VB.NET Crystal Report
  • Get source code to generate code in Visual Studio VB.NET program
  • Automatically calculate and add check digit for linear barcodes/ postal barcode in VB.NET
Apart from encoding those common numeric digit & alphanumeric data, Visual Basic barcode encoding & generating class library SDK from OnBarcode.com also supports encoding GS1-compatible data and Unicode in .NET Framework. This VB.NET barcode encoding dll can be used in WinForms.NET, ASP.NET, Crystal Reports and RDLC Reports. In addition, VB.NET barcode recognition are availabe with .NET Barcode Reader.
For VB.NET developers, OnBarcode also provides other complete VB.NET barcode manuals here:
  1. VB.NET Barcode Generation Tutorial - How to generate & print barcode graphic labels in VB.NET projects
  2. VB.NET Barcode ASP.NET Tutorial - How to stream & create barcodes in ASP.NET web applications using VB.NET
  3. VB.NET Barcode WinForms Tutorial - How to draw & paint multiple barcodes pictures in VB.NET Windows Forms
  4. VB.NET Barcode Imaging Tutorial - How to programmatically design barcodes using VB.NET code to adjust image settings
How to Encode GS1 Barcode Using VB.NET Class Codes
VB.NET barcode encoding control owns the GS1-compatible data encoding function, so it can easily export & display these GS1 compatible barcode images encoding numbers with VB.NET scripting. Please install the barcode plugin by adding it to reference and toolbox first.
The following example text string will illustrate how to use VB.NET class codes to encrypt those GS1-compatible barcodes (GS1 DataBar, EAN-128/GS1-128, ITF-14, Data Matrix, and QR Code). Default value is Png, while you can output image in Gif, Jpg, Tif via VB.NET.

Generate GS1 DataBar Barcode in VB.NET Class

Dim gs1_databar As New Linear()
gs1_databar.Type = BarcodeType.RSS14
gs1_databar.Data = "01666663333300"

' GS1 DataBar Size Settings
gs1_databar.UOM = UnitOfMeasure.PIXEL
gs1_databar.X = 2
gs1_databar.Y = 82
gs1_databar.LeftMargin = 20
gs1_databar.RightMargin = 20

' GS1 DataBar Image Format Setting
gs1_databar.Format = System.Drawing.Imaging.ImageFormat.Gif

' Save GS1 DataBar to C:\

Generate GS1-128/EAN-128 Barcode in VB.NET Class

Dim gs1_128 As New Linear()
gs1_128.Type = BarcodeType.EAN128
gs1_128.Data = "(8101)06789900799"

' GS1-128/EAN-128 Size Settings
gs1_128.UOM = UnitOfMeasure.PIXEL
gs1_128.X = 1
gs1_128.Y = 80
gs1_128.LeftMargin = 10
gs1_128.RightMargin = 10

' GS1-128/EAN-128 Image Format Setting
gs1_128.Format = System.Drawing.Imaging.ImageFormat.Png

' Save GS1-128/EAN-128 to C:\

Generate GS1 Compatible ITF-14 Barcode in VB.NET Class

Dim itf_14 As New Linear()
itf_14.Type = BarcodeType.ITF14
itf_14.Data = "1061414199993"

' ITF-14 Size Settings
itf_14.UOM = UnitOfMeasure.PIXEL
itf_14.X = 1
itf_14.Y = 76
itf_14.N = 2F

' ITF-14 Bearer Bar Settings
itf_14.BearerBarHori = 2
itf_14.BearerBarVert = 2

' ITF-14 Image Format Setting
itf_14.Format = System.Drawing.Imaging.ImageFormat.Png

' Save ITF-14 to C:\

Generate Compatible Data Matrix Barcode in VB.NET Class

Dim data_matrix As New DataMatrix()

' Set Data Matrix barcode data to encode
data_matrix.Data = "(8101)06789900799"

' Set Data Matrix data mode
data_matrix.DataMode = DataMatrixDataMode.ASCII

' Data Matrix format mode
data_matrix.FormatMode = DataMatrixFormatMode.Format_16X16

' Set Data Matrix to be GS1 Compatible
data_matrix.FNC1 = FNC1.FNC1_1ST_POS

' Set Data Matrix barcode size;
data_matrix.UOM = UnitOfMeasure.PIXEL
data_matrix.X = 4
data_matrix.LeftMargin = 8
data_matrix.RightMargin = 8
data_matrix.TopMargin = 8
data_matrix.BottomMargin = 8

' Generate Data Matrix and encode it to gif format
data_matrix.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif

Generate Compatible QR Code Barcode in VB.NET Class

Dim qr_code As New QRCode()

' Set QR Code barcode data
qr_code.Data = "(8101)06789900799"

' Set QR Code data mode
qr_code.DataMode = QRCodeDataMode.Auto

' Set QR Code to be GS1 Compatible
qr_code.FNC1 = FNC1.FNC1_1ST_POS

' Set QR Code barcode size;
qr_code.UOM = UnitOfMeasure.PIXEL
qr_code.X = 4
qr_code.LeftMargin = 16
qr_code.RightMargin = 16
qr_code.TopMargin = 16
qr_code.BottomMargin = 16

' Save created QR Code to png file format
qr_code.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
How to Encode Unicode into Barcode Using VB.NET
Besides encoding ISO 8859-1 standard data, Onbarcode.com's VB.NET barcode encoder can also encode other data, such as Arabic, Cyrillic, Greek, Hebrew. And users can encode these special characters through the Unicode encoding function of our VB.NET Barcode Generator.
The following VB.NET codes are used to encode Unicode into two-dimensional barcode symbology QR Code, Data Matrix and PDF417. For more, you can input VB.NET code to change barcode height, color and other properties.
Please note that, the following VB.NET code uses Base64[] conversion method to encode Unicode. Therefore, to scan and obtain original data, you need to convert the decoded data back to original data via Base64[] conversion.

Encode Unicode into QR Code Barcode Using VB.NET


Encode Unicode into Data Matrix Barcode Using VB.NET


Encode Unicode into PDF417 Barcode VB.NET

VB.NET Barcode Generation Guide for Linear & 2D Barcode Types

.NET Barcode Component for VB.NET - Barcodes Generation

OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding, VB.NET Barcode Image, Java JSP Servlet. OnBarcode barcode products are supported by RasterEdge .NET HTML5 Document Viewer high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.