Barcode for ASP.NET > Generate Barcode in VB

How to Generate Barcodes in ASP.NET in VB.NET

Print Barcodes in ASP.NET Websites Using Free Visual Basic .NET Barcode Control
Compatibility & Requirement
  • Development Platforms for .NET: Visual Studio 2005/2008/2010, .NET Version 2.0 or above, IIS (Microsoft Internet Information Services), C#.NET, or VB. NET
  • Supported Projects Types: ASP.NET Web Site, ASP.NET Web Services, Class Library, and Console Application
  • Available Operating Systems: Windows 2000, Windows XP, Windows Vista, Windows 2007, Windows Server 2003 and later versions
  • Lowest System Requirements: 500MHZ processor, 128MB RAM, 5MB available hard drive space
Test Environment
  • Microsoft Windows XP
  • Microsoft Visual Studio 2005
  • Visual Basic.NET
KA.Barcode Generator for ASP.NET is a powerful SDK library for the encoding & printing of barcode images in ASP.NET web forms, websites, web pages, and Microsoft Internet Information Services (IIS). It provides a user-friendly interface for barcode generation. Detailed tutorials with VB.NET sample codes are provided to help users for simple barcode encoding or generation. This product is a useful Visual Basic barcode generator component that can automatically calculate and add check digit for barcodes.
This ASP.NET Barcode Generator is compatible with commonly-used windows systems. It also offers barcode module creation examples. Moreover, it supports capturing barcodes and resizing barcode pictures. Those barcodes contain two-dimensional barcodes, alphanumeric barcode types, binary barcodes, etc.
All implemented recognition barcode images can be saved or shown in multiple image formats, such as jpg, bitmap, tiff, etc. Furthermore, those pictures may be integrated with thermal printers. With this barcode generator dll, users can add barcode database to projects with a few clicks and get needed barcode images.
How to Generate Barcodes in ASP.NET Using VB.NET
There are two ways of generating linear and 2d barcode images in ASP.NET web applications. Download KeepAutomation Barcode Generator for ASP.NET evaluation freeware and unzip it for barcode generation. You may choose one of the following methods based on your demands.
Means 1: Drag and Drop BarcodeControl to Visual Basic Project
It is so easy to output or retrieve barcodes using VB class in web application in the following steps. Developers can apply required barcodes to various applications.
  1. Open your Visual Studio and create a VB web project.
  2. Copy "barcode.aspx" and "barcode.aspx.cs" to the folder for barcode creation.
  3. Add KeepAutomation.Barcode.Web.dll to your Visual Studio Toolbox.
  4. Drag and Drop BarcodeControl to the Source Window.
  5. Right click Default.aspx, view code, and change barcode properties with following C# code.
VB Sample code

Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology = KeepAutomation.Barcode.Symbology.DataMatrix
barcode.CodeToEncode = "123"
barcode.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.Auto
barcode.X = 5
barcode.Y = 5
barcode.BarCodeWidth = 70
barcode.BarCodeHeight = 70
barcode.BottomMargin = 2
barcode.LeftMargin = 2
barcode.RightMargin = 2
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree0
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel
barcode.DPI = 72
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
barcode.generateBarcodeToImageFile("C://barcode-datamatrix-vb.png")

Means 2: Build Click Event in Winforms in VB.NET
There is another method to convert value or characters into barcode images. Digital signature will be implemented with this demo. Our product is compatible with latest barcode specifications, and it will automatically give spaces for barcodes. Delivery of point barcode can be finished within several seconds.
  1. Download the ASP.NET Barcode Generator trial package and unzip it.
  2. Create a web application using the installed project template in VB projects.
  3. Copy "barcode.aspx" and "barcode.aspx.cs" to the folder where you generate barcode.
  4. Add reference KeepAutomation.Barcode.Web.dll to your VB project.
  5. Select View Code at the Default.aspx and copy the following demo code to your ASP.NET class project.
VB Sample code

Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology = KeepAutomation.Barcode.Symbology.Code128Auto
barcode.CodeToEncode = "Code 128"
barcode.X = 1
barcode.Y = 60
barcode.DisplayText = True
barcode.ChecksumEnabled = True
barcode.DisplayChecksum = True
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree0
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
barcode.generateBarcodeToImageFile("C://barcode-code128-vb.png")
'More Barcode Generation Method:
'Public Sub generateBarcodeToGraphics(ByVal graphics As System.Drawing.Graphics)
'Public Sub generateBarcodeToImageFile(ByVal filename As String)
'Public Sub generateBarcodeToStream(ByVal fileStream As System.IO.Stream)
'Public Function generateBarcodeToBitmap() As System.Drawing.Bitmap
'Public Function generateBarcodeToByteArray() As Byte()

CompatibilityTest EnvironmentASP.NET VB BarcodingUsing C#Using VB.NETData Matrix for ASP.NETPDF417 for ASP.NETQR Code for ASP.NETmoreCodabar for ASP.NETCode 39 for ASP.NETCode 128 for ASP.NETEAN-8 for ASP.NETEAN-13 for ASP.NETEAN 128 for ASP.NETIntelligent Mail for ASP.NETInterleaved 2 of 5 for ASP.NETISBN for ASP.NETITF-14 for ASP.NETRM4SCC for ASP.NETUPC-A for ASP.NETUPC-E for ASP.NETmore
KeepAutomation provides complete barcode automation solutions for add barcode display 2-dimensional, barcode generation capacity api, and barcode mobile applications. We recommend the customers use high quality ASP.NET html5 document viewer, c# pdf sdk, C# merge PDF files, Split PDF in C#, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from RasterEdge.com.