In the following sample we'll create a RDLC report which displays barcode images into it by using Barcode Professional and Visual Studio 2005 ReportViewer controls in an ASP.NET Web Application
Neodynamic Barcode Professional 2.0 for Reporting Services or greater
Microsoft .NET Framework 2.0 or greater
Microsoft Visual Studio 2005 or greater
Microsoft Visual Studio 2005 ReportViewer control
Microsoft Visual Web Developer Express Edition with ReportViewer add-in installed
ASP.NET 2.0
Due to its flexible design, Barcode Professional allows you to easily add barcode images in RDLC (Report Definition Language Client-side processing) reports. You can use all Barcode Symbologies - Linear & 2D - built-in Barcode Professional.
In this sample we'll create a Product List RDLC report using Microsoft's AdventureWorks database sample.
Public Function GetBarcode(ByVal code As String) As Byte()
'Set the value to encode
objBarcode.Code = code
'Set the Industrial 2 of 5 Barcode Symbology
objBarcode.Symbology = Neodynamic.ReportingServices.Symbology.Industrial2of5
'Set the Bar's height to 20 px
objBarcode.BarHeight = 20
'Hide the value to encode in the barcode image
objBarcode.DisplayCode = False
'Generate the barcode image
Return objBarcode.GetBarcodeImagePng()
End Function
Me.ReportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("Neodynamic.ReportingServices.Barcode, Version=2.0.2000.0, Culture=neutral, PublicKeyToken=c6b33c3093a0d4cd")
this.reportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("Neodynamic.ReportingServices.Barcode, Version=2.0.2000.0, Culture=neutral, PublicKeyToken=c6b33c3093a0d4cd");
• For Barcode Professional 3.0:
Me.ReportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("Neodynamic.ReportingServices.Barcode, Version=3.0.2000.0, Culture=neutral, PublicKeyToken=c6b33c3093a0d4cd")
this.reportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("Neodynamic.ReportingServices.Barcode, Version=3.0.2000.0, Culture=neutral, PublicKeyToken=c6b33c3093a0d4cd");
• For Barcode Professional 4.0:
Me.ReportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("Neodynamic.ReportingServices.Barcode, Version=4.0.2000.0, Culture=neutral, PublicKeyToken=c6b33c3093a0d4cd")
this.reportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("Neodynamic.ReportingServices.Barcode, Version=4.0.2000.0, Culture=neutral, PublicKeyToken=c6b33c3093a0d4cd");
We provide best-in-class customer service and support directly from members of our dev team! If we are available when you contact us, you will get a response in few minutes; otherwise the maximum turnaround is 24hs in most cases.