The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording and you can use it to add to new pdf with barcode sdk with VB.NET.
The following code snippet for ByteScout Premium Suite works best when you need to quickly add to new pdf with barcode sdk in your VB.NET application. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! If you want to use these VB.NET sample examples in one or many applications then they can be used easily.
You can download free trial version of ByteScout Premium Suite from our website with this and other source code samples for VB.NET.
Imports Bytescout.BarCode Class Program Friend Shared Sub Main() ' Create new barcode and register it. Dim barcode As New Barcode() barcode.RegistrationName = "demo" barcode.RegistrationKey = "demo" ' Set symbology barcode.Symbology = SymbologyType.DataMatrix ' Set value barcode.Value = "Sample barcode" ' Place barcode at top-right corner of document page barcode.DrawToNewPDF("barcode.pdf", 595,842, 500, 50) ' Open output file in default PDF viewer System.Diagnostics.Process.Start("barcode.pdf") End Sub End Class