Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > VB.NET Barcoding Tutorial > VB.NET GS1-Compatible Barcode Generation Guide
Download Barcode for .NET Suite Trial

Generate & Print GS1 Barcode in VB.NET Applications

How to Generate & Create GS1-Compatible 1D & 2D Barcodes Using VB.NET
  • An easy-to-use VB.NET barcoding library dll, no need for activation keys or registration code
  • A high-quality GS1 barcode generator used for + 1000 VB.NET developers since 2003
  • Create & output GS1-compatible barcode images to memory files using VB.NET
  • Generate & save GS1-compatible barcodes to gif, png, tiff, bmp & jpeg image files
  • Offer VB.NET code for GS1 barcode generation in ASP.NET &.NET WinForms projects
  • Generated GS1-compatible barcodes are compatible with ISO / IEC standards
Overview - VB.NET GS1 Compatible Barcodes
GS1-compatible barcode types are the only barcodes that are accepted globally. Thus, if your products will be sold in the whole world, then a GS1-compatible barcode will become quite necessary. Our VB.NET barcode generation library can easily generate GS1-compatible barcodes, like linear barcode EAN-128, ITF-14 and 2d barcode types like QR Code, Data Matrix.
Generate & Save GS1 Barcodes in VB.NET Class Project
In this section, you will get the easiest way to generate both linear & 2d GS1-compatible barcode images using VB.NET code.

Install VB.NET Barcode Library DLL

  • Integrate Barcodelib.Barcode.ASP.NET.dll or Barcodelib.Barcode.WinForms.dll to your project by adding reference.
  • Integrate Barcodelib.Barcode.ASP.NET.dll or Barcodelib.Barcode.WinForms.dll to your Visual Studio Toolbox by choosing item.

Generate & Create GS1-Compatible 2D Barcodes Using VB.NET

The VB.NET codes listed below are used to generate GS1-compatible 2d barcode types, including QR Code and Data Matrix.
Generate GS1 QR Code Barcode in VB.NET
     ' Firstly, generate common QR Code image using VB.NET
     Dim qrcode As BarcodeLib.Barcode.QRCode = new BarcodeLib.Barcode.QRCode()
     qrcode.Encoding = BarcodeLib.Barcode.QRCodeEncoding.Auto
     qrcode.Data = "(12)345678945612"
     qrcode.ModuleSize = 2
     qrcode.LeftMargin = 8
     qrcode.RightMargin = 8
     qrcode.TopMargin = 8
     qrcode.BottomMargin = 8

     ' Secondly, create GS1-compatible barcoding function
     qrcode.FNC1Mode = QRCodeFNC1Mode.FirstPosition

     ' Thirdly, save generated QR Code into png image file
     qrcode.drawBarcode("c:/gs1-qr-code.png")
Generate GS1 Data Matrix Barcode in VB.NET
     ' Firstly, generate common QR Code image using VB.NET
     Dim Generate & Print 2D GS1 Barcode - Data Matrix
     ' The VB.NET code is used to generate common Data Matrix
     Dim datamatrix As New BarcodeLib.Barcode.DataMatrix()
     datamatrix.Data = "(12)345678945612"
     datamatrix.ModuleSize = 4
     datamatrix.LeftMargin = 4
     datamatrix.RightMargin = 4
     datamatrix.TopMargin = 4
     datamatrix.BottomMargin = 4

     ' The VB.NET code can change generated common Data Matrix to GS1-compatible Data Matrix
     datamatrix.FNC1Mode = DataMatrixFNC1Mode.FirstPosition

     ' The VB.NET code is used to save created GS1 Data Matrix to your system
     datamatrix.drawBarcode("c:/gs1-data-matrix.png")

Generate & Print GS1-compatible Linear Barcodes Using VB.NET

Apart from those 2d barcode types, our VB.NET barcode generator can also support generating some linear GS1 barcode types, such as GS1-128 (EAN-128) and ITF-14 barcodes.
Generate GS1-128 Barcode in VB.NET
     ' Create GS1-128 barcode
     Dim ean128 As New BarcodeLib.Barcode.Linear()
     ean128.Type = BarcodeType.EAN128
     ean128.Data = "~ai211121211"
     ean128.ProcessTilde = True
     ean128.BarWidth = 3

     ' Draw created GS1-128 barcode image to your system
     ean128.drawBarcode("c:/gs1-128.png")
Generate GS1 ITF-14 Barcode in VB.NET
     ' Users can generate GS1-compatible barcodes using following sample VB.NET code
     Dim itf14 As New Linear()
     itf14.Type = BarcodeType.ITF14
     itf14.Data = "1234567891234"
     itf14.drawBarcode("C:/gs1-itf14.png")
How to Articles for VB.NET Barcode Generation
VB.NET Barcode SDK Supported Barcode Images
1D Barcodes in VB.NET:
2D Barcodes in VB.NET: