VB.NET GS1-128/EAN-128 Reader & Scanner SDK


How to scan, read GS1-128 barcode images in Visual Basic .NET Windows application?

How to read, scan, decode GS1-128 images in VB.NET class, ASP.NET Web & Windows applications

  • Scan GS1-128 barcode in VB.NET class, Console applications
  • Read GS1-128 / EAN-128 barcode in VB.NET ASP.NET web projects
  • Read, decode GS1-128 / EAN-128 images in Visual Studio VB.NET Windows Forms applications
  • Detailed tutorials on read barcode in asp.net c#, read barcode in c# windows application
  • Easy and simple to integrate GS1-128 / EAN-128 reader component (single dll file) into your VB.NET project
  • Complete developed in C# 2005, for .net framework 2.0 and later version
  • Scanning, decoding GS1-128 / EAN-128 from multiple image formats, like BMP, GIF, JPEG, PNG, TIFF formats
  • Scanning, reading GS1-128 / EAN-128 from multi-page TIFF documents


How to read, scan GS1-128 (EAN-128) barcode image in VB.NET application

  1. Download .NET Barcode Reader Library
  2. Install VB library to scan GS1-128 barcode images in VB.NET apps
  3. Step by Step Tutorial












Scan, Read GS1-128 / EAN-128 barcodes from images is one of the barcode reading functions in .NET Barcode Reader SDK control. It is compatible for Microsoft Visual Studio .NET framework 2.0 and later version. VB.NET barcode scanner is a robust and mature .net barcode recognition component for VB.NET projects. You can easily scan and decode linear, 2d barcodes from image documents in your VB.NET class, console application, ASP.NET web projects, and VB.NET Windows software.
To help .net developers easiy integrate barcode reader control into your .net projects, we provide detailed online tutorial for
VB.NET Barcode Reader component supports scanning and reading 20+ linear, 2d barcodes, including
You may also be interested in:


Quick to scan GS1-128 / EAN-128 barcode in VB.NET WinForms, WPF application

Here we will explain how to scan, validate, and parse structured data from GS1-128 (GS1 standard barcode using Code 128 as carrier) using VB.NET.

We provide a sample GS1-128 barcode image encoded with standard GS1 data:

(01)09012345678901(17)240915(10)abc123(3930)978112

GS1-128 uses Code 128 as its data carrier and contains AI (Application Identifier) + data pairs.

Key Processing Rules

  1. GS1-128 is recognized by setting the barcode type to BarcodeType.Code128.
  2. Use IsGS1Compatible to verify GS1 standard compliance.
  3. Use GetMessage() to obtain formatted AI‑data string output.
  4. Parse AI pairs by splitting on ( and ) delimiters.

Follow these steps to read and parse GS1-128 data in VB.NET:

  1. Set the scanning type to BarcodeType.Code128.
  2. Call BarcodeScanner.ScanInDetails() to read the image.
  3. Check if the barcode is GS1 compliant using IsGS1Compatible.
  4. Get the formatted GS1 message with GetMessage().
  5. Split the message to extract AI and corresponding data pairs.

' Define the input image file path
Dim inputFilePath As String = "W:\Projects\Test-Input\gs1-sample-data-gs1-128.png"

' Scan GS1-128 (Code 128) barcode from image
Dim result As BarcodeDetail() = BarcodeScanner.ScanInDetails(inputFilePath, BarcodeType.Code128)

' Process each detected barcode
For Each b As BarcodeDetail In result
    ' Check if the barcode follows GS1 standard
    If b.IsGS1Compatible Then
        ' Get formatted GS1 message (e.g., (01)09012345678901(17)240915)
        Dim msg As String = b.GetMessage()
        Console.WriteLine("Data: '{0}'", b.Data)
        Console.WriteLine("Message: {0}", msg)

        ' Split AI and data using ( and ) delimiters
        Dim vals As String() = msg.Split({"("c, ")"c}, StringSplitOptions.RemoveEmptyEntries)

        ' Extract and display AI + Data pairs
        For i As Integer = 0 To vals.Length - 1 Step 2
            Console.WriteLine("AI:    {0}", vals(i))
            Console.WriteLine("Data:  {0}", vals(i + 1))
        Next
    End If
Next













































































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.