ByteScout tutorials describe the stuff for programmers who use VB.NET. ByteScout Barcode Suite helps with margins with barcode sdk in VB.NET. 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).
VB.NET code snippet like this for ByteScout Barcode Suite works best when you need to quickly implement margins with barcode sdk in your VB.NET application. Just copy and paste this VB.NET sample code to your VB.NET application’s code editor, add a reference to ByteScout Barcode Suite (if you haven’t added yet) and you are ready to go! Further improvement of the code will make it more robust.
Visit our website to get a free trial version of ByteScout Barcode Suite. Free trial contains many of source code samples to help you with your VB.NET project.
Imports Bytescout.BarCode Module Module1 Sub Main() ' Create new barcode Dim barcode As New Barcode() ' Set symbology barcode.Symbology = SymbologyType.Codabar ' Set value barcode.Value = "123456" ' Set new margins barcode.Margins = New Bytescout.BarCode.Margins(0, 0, 100, 100) ' Save barcode to image barcode.SaveImage("result.png") ' Show image in default image viewer Process.Start("result.png") End Sub End Module