This sample source code below will display you how to generate gs1 datamatrix barcode with barcode sdk in VB.NET. ByteScout Premium Suite can generate gs1 datamatrix barcode with barcode sdk. It can be applied from VB.NET. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
The following code snippet for ByteScout Premium Suite works best when you need to quickly generate gs1 datamatrix barcode with barcode sdk in your VB.NET application. Simply copy and paste in your VB.NET project or application you and then run your app! Check VB.NET sample code samples to see if they respond to your needs and requirements for the project.
ByteScout Premium Suite free trial version is available on our website. VB.NET and other programming languages are supported.
Imports Bytescout.BarCode Module Module1 Sub Main() ' Create new barcode Dim barcode As New Barcode() ' Set symbology barcode.Symbology = SymbologyType.GS1_DataMatrix ' Set GS1 barcode value barcode.Value = "(01)03453120000011(17)291030(10)ABC123" ' you may also set the value without brackets and the SDK will automatically add brackets where needed ' also some values may include "|" character as the additional separator (for example, GS1 Australian Post) 'barcode.Value = "01034531200000111729103010ABC123" ' it will be converted into "(01)03453120000011(17)291030(10)ABC123" automatically ' you may also optionally check if this value is valid according to GS1 subtype rules 'bool isValidValue = barcode.ValueIsValidGS1(barcode.Value)) ' Save barcode to image barcode.SaveImage("result.png") ' Show image in default image viewer Process.Start("result.png") End Sub End Module