Barcode VB.NET > Barcode in VB.NET
Crystal Report Barcode Image Creator SDK - Overview
Barcode Generator SDK for Crystal Reports is an easy-to-use and mature .NET control SDK that integrate into Crystal Reports to generate 40+ linear and 2D barcodes using C# and VB.NET class library. It is compatible with Microsoft Visual Studio and other .NET development environments. All 40+ linear and 2D barcode symbologies are built into a single, small, fully-functional and redistributable DLL file for easy and quick insertion in Crystal Reports.
Besides specify how to generate barcodes in Crystal Reports using VB, Terrek also provide other solution of generating barcodes in Crystal Reports such as print barcodes in Crystal Reports using C#, create barcodes in ASP.NET Crystal Report, Add barcodes in Windows Crystal Report. Prerequisites and Compatibility Prerequisites
Compatibility
Create Barcodes in Crystal Report Windows Version using VB.NET Database
Generate Barcode Images in Crystal Report in WinForms Project using VB - Sample Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim aConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.mdb") aConnection.Open() Dim dataAdapter As New OleDbDataAdapter("select * from Customer", aConnection) Dim ds As New DataSet() dataAdapter.Fill(ds) 'add a new column named "Barcode" to the DataSet, the new column data type is byte[] ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte()))) Dim DataMatrix As Terrek.Barcode.DotNET.DotNETControl DataMatrix.Symbol = Terrek.Barcode.BarcodeSymbol.DataMatrix For Each dr As DataRow In ds.Tables(0).Rows barcode.Data = CInt(dr("CustomerId")) & "" Dim imageData As Byte() = barcode.drawBarcodeAsBytes() dr("Barcode") = imageData Next Dim rpt As New CrystalReport1() rpt.SetDataSource(ds) Me.CrystalReportViewer1.ReportSource = rpt aConnection.Close() End Sub Add Barcodes in Crystal Report ASP.NET Version using VB Database
Free Sample Code of Making Barcode Image in ASP.NET Crystal Report using VB.NET
aConnection.Open() Dim dataAdapter As New OleDbDataAdapter("select * from Customer", aConnection) Dim ds As New DataSet() dataAdapter.Fill(ds
Protected Sub CrystalReportViewer1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Init Dim aConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.mdb") aConnection.Open() Dim dataAdapter As New OleDbDataAdapter("select * from Customer", aConnection) Dim ds As New DataSet() dataAdapter.Fill(ds) 'add a new column named "Barcode" to the DataSet, the new column data type is byte[] ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte()))) Dim barcode As Terrek.Barcode.DotNET.DotNETControl barcode.Symbol = Terrek.Barcode.BarcodeSymbol.PDF417 For Each dr As DataRow In ds.Tables(0).Rows barcode.Data = CInt(dr("CustomerId")) & "" Dim imageData As Byte() = barcode.drawBarcodeAsBytes() dr("Barcode") = imageData Next CrystalReportSource1.ReportDocument.Load(Server.MapPath("CrystalReport1.rpt")) CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables(0)) CrystalReportSource1.DataBind() aConnection.Close() End Sub |
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 |