An easy to understand guide on how to generate gs1 datamatrix barcode with barcode sdk in VB.NET with this source code sample. ByteScout Barcode Suite is the bundle that privides 3 SDK products to generate barcodes (Barcode SDK), read barcodes (Barcode Reaer SDK) and read and write spreadsheets (Spreadsheet SDK) and you can use it to generate gs1 datamatrix barcode with barcode sdk with VB.NET.
This prolific sample source code in VB.NET for ByteScout Barcode Suite contains various functions and other necessary options you should do calling the API to generate gs1 datamatrix barcode with barcode sdk. Simply copy and paste in your VB.NET project or application you and then run your app! Applying VB.NET application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.
You can download free trial version of ByteScout Barcode Suite from our website with this and other source code samples for VB.NET.
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