In this simple guide you will learn how to insert a barcode image to the Header
or Footer sections of a RDLC report in a Windows Forms application project
using C# or VB.NET and Neodynamic Barcode Professional for Windows Forms.
RDLC reports are included since Visual Studio 2005 and allow you to design
reports in Visual Studio which are displayed on a form by using ReportViewer
controls.
NOTE:
-
The source code in this guide was made by using Visual Studio 2010 but you can
easily use it in older versions of ReportViewer controls like the ones
delivered with Visual Studio 2008.
-
The RDLC report in this guide has no data source settings for simplicity but
the same technique shows here can be used with reports bound to any data
source.
The idea is to create a Windows form allowing the user to enter a text value
which will be converted to a barcode images inserting it in the Header section
of a RDLC report. In this guide we'll generate a well known linear barcode
called Code 128 (USS Code 128) using Neodynamic Barcode Professional for
Windows Forms component based on the specified value but you could use any of
the barcode standards included in Barcode Professional like Code 39, EAN-13,
UPC-A, GS1-128, USPS Intelligent Mail Barcode as well as 2D symbologies like
Data Matrix, QR Code, Aztec Code, PDF 417, etc. (
More info about all supported barcode symbologies in Barcode
Pro for Windows Forms)
The Windows Forms app sample displaying a barcode image inside the Header
section of a RDLC report
Here are the VB.NET and C# versions of this sample. Please
download the zip file and extract it.
Remember to download and install Barcode Professional for
Windows Forms .NET in order to reproduce this sample demo.
If you need more information or assistance, please contact our
.