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
- 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
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.
- Open your Visual Studio and create a VB web project.
- Copy "barcode.aspx" and "barcode.aspx.cs" to the folder for barcode creation.
- Add KeepAutomation.Barcode.Web.dll to your Visual Studio Toolbox.
- Drag and Drop BarcodeControl to the Source Window.
- 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.
- Download the ASP.NET Barcode Generator trial package and unzip it.
- Create a web application using the installed project template in VB projects.
- Copy "barcode.aspx" and "barcode.aspx.cs" to the folder where you generate barcode.
- Add reference KeepAutomation.Barcode.Web.dll to your VB project.
- 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()