This sample source code below will display you how to generate datamatrix (2d) barcode with barcode sdk in VB.NET. ByteScout Premium Suite: the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can generate datamatrix (2d) barcode with barcode sdk in VB.NET.
The SDK samples given below describe how to quickly make your application do generate datamatrix (2d) barcode with barcode sdk in VB.NET with the help of ByteScout Premium Suite. Just copy and paste the code into your VB.NET application’s code and follow the instructions. Further improvement of the code will make it more robust.
Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your VB.NET app.
Imports Bytescout.BarCode Module Module1 Sub Main() ' Create new barcode Dim barcode As New Barcode() ' Set symbology barcode.Symbology = SymbologyType.DataMatrix ' Set value barcode.Value = "this is a test string" ' Save barcode to image barcode.SaveImage("result.png") ' Show image in default image viewer Process.Start("result.png") End Sub End Module