以下の例は、
http://www.onbarcode.com/tutorial/vb-net-barcode-generation.html
バーコードを生成
Dim barcode As OnBarcode.Barcode.Linear
' Create linear barcode object
barcode = New OnBarcode.Barcode.Linear()
' Set barcode symbology type to Code-39
barcode.Type = OnBarcode.Barcode.BarcodeType.CODE39
' Set barcode data to encode
barcode.Data = "0123456789"
' Set barcode bar width (X dimension) in pixel
barcode.X = 1
' Set barcode bar height (Y dimension) in pixel
barcode.Y = 60
' Draw & print generated barcode to png image file
barcode.drawBarcode("C://vbnet-code39.png")
描いて印刷する
Dim qrCode As OnBarcode.Barcode.QRCode
' Create QRCode object
qrCode = New OnBarcode.Barcode.QRCode()
' Set QR Code data to encode
qrCode.Data = "VB.NET QRCode"
' Set QRCode data mode (QR-Code Barcode Settings)
qrCode.DataMode = OnBarcode.Barcode.QRCodeDataMode.Auto
' Draw & print generated QR Code to jpeg image file
qrCode.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg
qrCode.drawBarcode("C://vbnet-qrcode.jpg")