Barcode in .NET WinForms
Barcode Generator/Control Component DLL/SDK in VB.NET Windows Applications - Overview
WinForms Barcode Generator Library & Control SDK is an easy-to-use .NET common control designed for developers to create and print linear and 2D barcode images in Windows Forms applications dynamically in .NET framework 2.0, 3.0, 3.5 and 4.0 based on Visual Studio. The generated barcode in Winforms is displayed as images that may be saved in image files such as Gif, Tiff, Bmp, Png or Jpeg, or saved in the memory in byte stream or graphic .NET objects.
This page talks about the detail tutorial of how to create and develop barcode system in Windows Forms project using VB.NET class method, free VB.NET sample code with trial versions are provided for your testament. Terrek also provides the programmer guide for generating barcode images in C#.NET windows applications. Common users may refer to three implementations to create barcode images in .NET WinForms. Barcode Inserted in Windows Applications Using VB.NET - Requirement and Development Requirement
Solution Project Development
Barcode Library SDK to Create Barcode Using VB.NET Windows Applications - Installation
It is easy and fast to create barcode images in WinForms applications using VB.NET class methods. The embedded barcode symbols and features can be fully displayed by VB.NET code. Before generation, the appropriate barcode component software may be installed in WinForms project using VB.NET. Install barcode Generator & Control Library DLL in VB.NET Windows Application
Barcode Control to Create Barcode Using VB.NET Windows Applications - Barcode Generation
VB.NET Sample Code to Generate Barcode Images in WinForms Project
VB.NET Sample Code to Generate Barcode Images in WinForms Project We use the Code 39 sample VB.NET code to create Code 39 in VB.NET Windows applications. To generate other barcode types, just change the barcode symbols and barcode data accordingly. Barcode with special settings are included by using VB.NET class method.
Dim Code39 As Terrek.Barcode.DotNET.DotNETControl = New Terrek.Barcode.DotNET.DotNETControl 'Set barcode type, encode data, resize and UOM properties Code39.Symbol = Terrek.Barcode.BarcodeSymbol.Code39 Code39.BarcodeData = "TRCODE39" Code39.ImageResize = True Code39.MeasuringUnit = Terrek.Barcode.MeasuringUnit.PIXEL 'Code 39 inter-space of characters, it is multiple of X Code39.InterCharGap = 1.0F ' Code 39 proportion of wide bar and narrow bar, ranging from 2.0 to 3.0 Code39.WideVSNarrow = 2.0F 'Show or hide Code 39 start and stop character "*" Code39.DisplayAsterisk = False 'Automatically calculate and add checksum symbol Code39.AutoCheckSum = False 'Display generated Code39 checksum in the text Code39.ShowCheckSum = True 'Define how the bars are placed in a Code39 image Code39.BarAlign = Terrek.Barcode.BarAlign.Center ' Code 39 module width and height Code39.BarWidth = 1 Code39.BarHeight = 40 ' Code 39 entire image width and height Code39.ImageWidth = 100 Code39.ImageHeight = 100 ' Code 39 margin size of left, right, top and bottom Code39.MarginL = 0 Code39.MarginR = 0 Code39.MarginT = 0 Code39.MarginB = 0 ' Show or hide Code 39 human-readable character Code39.DisplayData = True ' Customize Code 39 human-readable character with font, color and margin Code39.TextStyle = New Font("Arial", 9.0F, FontStyle.Regular) Code39.TextColor = Color.Black Code39.TextSpace = 6 ' Specify Code 39 image Code39.DotsPerInch = 96 Code39.Rotation = Terrek.Barcode.Rotation.Degree0 Code39.BarcodeFormat = System.Drawing.Imaging.ImageFormat.Png Code39.SaveAsImage("C:\code39.png") ' Specify Code 39 image color Code39.ImageColor = Color.White Code39.BarColor = Color.Black |
Copyright © Terrek.com 2014.All rights reserved.
Code 39 .NET | Code 128 ASP.NET | PDF417 C#.NET | Data Matrix VB.NET | QRCode Java | UPC-A Crystal | Linear Barcodes SSRS | 2D Barcodes RDLC |