PHP Classes

barcode sample code error

Recommend this page to a friend!

      Bar Code Generator  >  All threads  >  barcode sample code error  >  (Un) Subscribe thread alerts  
Subject:barcode sample code error
Summary:barcode generator
Messages:1
Author:makaveiljojo
Date:2013-12-09 07:43:48
 

  1. barcode sample code error   Reply   Report abuse  
Picture of makaveiljojo makaveiljojo - 2013-12-09 07:43:49
Hello Peter,
Thank you for sharing the links.
I downloaded a free trial package of a barcode generator(http://www.keepautomation.com/how_to/net_winforms/vbnet_barcode.html) and I've trying to generate barcode in .NET Winforms using VB, but I don't know if there something went wrong with the code or anything other reason, no barcode image showed up at all.

Here are the sample code, do you mind checking it and tell me if anything wrong within it? please

Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology = KeepAutomation.Barcode.Symbology.Code128Auto
barcode.CodeToEncode = "245741SAD"
barcode.X = 1
barcode.Y = 60
barcode.BottomMargin = 10
barcode.LeftMargin = 10
barcode.RightMargin = 10
barcode.TopMargin = 10
barcode.DisplayText = True
barcode.ChecksumEnabled = True
barcode.DisplayChecksum = True
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree0
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel
barcode.DPI = 72
barcode.TextFont = New Font("Arial", 10.0F, FontStyle.Regular)
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg
barcode.generateBarcodeToImageFile("C://barcode-code128-vb.jpeg")