Quick to scan barcodes in VB.NET WinForms, WPF application
This guide demonstrates how to scan and recognize EAN-13 (13-digit international standard linear barcode) using the VB.NET Barcode Reader library.
You can implement EAN-13 barcode scanning with a direct method call in VB.NET. The core scanning method accepts an image source and target barcode type as input parameters.
Follow these steps to scan EAN-13 barcodes in VB.NET:
You can implement EAN-13 barcode scanning with a direct method call in VB.NET. The core scanning method accepts an image source and target barcode type as input parameters.
Follow these steps to scan EAN-13 barcodes in VB.NET:
- Call the core decoding method
BarcodeScanner.Scan(). - Pass the barcode image file path as the first parameter.
- Specify the barcode type as
BarcodeType.EAN13. - The method returns a string array containing all decoded barcode data.
' Scan and decode EAN-13 barcode from image file Dim datas As String() = BarcodeScanner.Scan("ean-13-barcode-image.gif", BarcodeType.EAN13)
Note: This method supports common image formats (GIF, PNG, JPG) in VB.NET desktop applications.
Common Asked Questions
What is the EAN-13 barcode?
EAN-13 is a 13-digit linear barcode, which contains 12-digit GS1 data message and 1 check digit. EAN is short for European Article Number,
and now it is renamed as GTIN (Global Trade Item Number). EAN 13 code will be used to uniquely identify retail products worldwide.
In VB.NET class, you can use OnBarcode VB.NET Barcode Reader library to scan and read EAN-13 barcode text from image files in vb.net Windows applications.
In VB.NET class, you can use OnBarcode VB.NET Barcode Reader library to scan and read EAN-13 barcode text from image files in vb.net Windows applications.
How to check if EAN-13 is valid?
In the EAN-13 barcode, the first 12-digit of the number identify the item ID, and the final digit is a "check digit".
Using VB.NET Barcode Reader Library, the scanned and decoded EAN-13 data will be verified by the last check digit.
How to read EAN-13 barcode?
You can use a barcode scanner device or barcode reader software to read and extract EAN-13 numbers from images.
OnBarcode vb.net Barcode Scanner library enables VB console, WinForms, WPF apps to scan and read EAN-13, UPC-A, QR Code and other 2d, linear barcode text from image files.
How to scan EAN code?
EAN barcode usually includes EAN-13, EAN-8 and 2-digit or 5-digit addon. You can use barcode software or scanners to capture, read and recognize EAN barcodes from images.
VB.NET Barcode Reader library supports both EAN-13 and EAN-8 (with or without addon) reading in Visual Basic console, WPF, Windows apps.