How to Generate Barcode in ASP.NET Web Forms
- Install Barcode Library DLL to ASP.NET web project.
Find OnBarcode.Barcode.ASPNET.dll from downloaded trial package and integrate it into your Visual Studio ASP.NET web project. - Add Barcode Control Library for ASP.NET to Toolbox.
Right click Toolbox, select Choose Items..., and click Browse... to locate OnBarcode.Barcode.ASPNET.dll. - Copy qrcode.aspx and qrcode.aspx.cs to your web project folder.
If you want to create linear barcodes or other 2d barcodes, please copy corresponding files to your project folder. - Drag and drop QRCodeWebForm to your ASPX web forms and run the project.
Then, a high-quality barcode image will be visible on your ASP.NET project and you can freely adjust its properties using VB.NET. Please see details from QR Code property settings.
How to Create & Print Barcode in IIS Streaming
- Copy barcode folder along with its contents from downloaded package to your IIS.
- Create a new virtual directory and name it barcode.
- Restart IIS and navigate to (QR Code encoding numbers): http://YourDomain:Port/barcode/qrcode.aspx?DATA=9876543210
- To generate barcode image in html or aspx pages, you may directly use a image tag like below:
<img src="http://YourDomain:Port/barcode/qrcode.aspx?DATA=0123456789" />
How to Generate Barcode in ASP.NET Class Using VB.NET
- Add Barcode Library DLL for ASP.NET to your ASP.NET VB.NET project reference for barcoding via VB.NET.
- Copy & paste following VB.NET sample code syntaxt to generate barcode image (Jpg, Tiff, Bitmap) on ASP.NET web page.
' Create a ASP.NET QR Code object
Dim qrCode As New QRCode()
' Customize QR Code barcode data
qrCode.Data = "ASP.NET VB.NET QR Code"
' Customize QR Code data mode
qrCode.DataMode = QRCodeDataMode.Auto
' Customize QR Code barcode size
qrCode.X = 2
qrCode.LeftMargin = 8
qrCode.RightMargin = 8
qrCode.TopMargin = 8
qrCode.BottomMargin = 8
' Encode created QR Code to png image file and save it to C:\
qrCode.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
qrCode.drawBarcode("C://aspnet-vb-net-qrcode.png")
VB.NET Barcode Generation Guides & Tutorials for Each Barcode
Top
Barcode Control for VB.NET - Bar Code Type Generation
- VB.NET Linear Barcode Images:
- VB.NET 2D Barcode Images: Data Matrix, PDF417, QR Code, Micro PDF417, Micro QR Code
