Avapose.Barcode Generator for RDLC

- Reliable PDF417 barcode generator component for .NET applications
- Compatible with .NET Framework 2.0, 3.0, 3.5, 4.0
- Create and print quality PDF417 barcodes in client report definition (rdlc) files
PDF417 Creation in Local Reports
- Print PDF-417 in Client Report Definition (.rdlc) Files
- Insert PDF-417 barcode generation features into local reports
- Implement reliable & mature PDF-417 generation in RDLC reports
- Allow to symbol sizing, rotating, and coloring for EAN-13 barcode image
- Capable to customize the account of columns and rows in one symbol
- Compatible with ISO / IEC 15438 (2nd edition 2006-06-01)
- Easy to install with Xcopy deployment
- Provide royalty free developer license
PDF-417 Barcode Generator Control for RDLC local report is offered by Avapose to make PDF-417 in Client RDLC reports. The generator is a .NET component that was developed 100% in managed code in C#. The generator is specified for PDF-417 barcode generation and the generated PDF-417 could be customized.
PDF-417 Barcode Generator Control for RDLC supports:
- RDLC Reports(runtime support)
- Windows Forms Application (design-time and runtime support)
- Class Library (runtime support)
- Console Application (runtime support)
- Windows Service (runtime support)
PDF-417 Barcode Generator for RDLC - PDF-417 Information
PDF-417 is defined as a stacked linear barcode sometime, but it is actually more close to the definition of a matrix (2D) barcode. The term PDF is short for Portable Data File; the 417 signifies that each pattern in the code is 17 units long and consists of four bars and spaces.
PDF-417 Barcode Generator for RDLC encodes:
- 128 ASCII characters
- Extended ASCII (ASCII characters 128-255, in accordance with ISO 8859-1)
PDF-417 Barcode Generator for RDLC - PDF-417 Generation
Environment Requirement
Before generating PDF-417 in .NET, you need to install:
- Windows 7, Windows Vista, or Windows XP
- .NET 2.0, 3.0 or later version
- Microsoft Visual Studio 2005/2008/2010
- Avapose.Barcode for RDLC
Creating a RDLC Report in .NET
Creating a RDLC Report in .NET- Open your Visual Studio and create a new Windows Forms;
- Create a new DataSet, name the dataset "AdventureWorks.xsd", and add it to the form;
- Select "Pointer", then drag &drop "TableAdapter" to your created Dataset;
- Create a new connection or use an existing connection to SQL Server AdventureWorks Sample Database;
- Input "SELECT ProductID, Name FROM Production.vProducrAndDescription WHERE (CultureID =Nâenâ) as SQL statements;"
Inserting Dataset and Table
- Right-click "vProductAndDescription" on the DataSet to create a new column in the DataTable, and name the column as "Barcode";
- Activate the Properties Window, and manually input "System.Byte[]" to the data type of the column;
- Switch to the Solution Explorer, and create a new report named "Report1.rdlc";
- Activate the "Toolbox", then insert a Table to the report;
Adding Fields
- Add three columns in the DataSet to the report table detail section, and drag an image item to the last column "Barcode";
- Set image item property "Source" to "Database";
- Set image item property "MIMEType"to "image/jpeg";
- Set image item property "Value" to "=Fields!Barcode.Value";
Integrating PDF-417 Generator into RDLC Report
- Select "Form1.cs[Design], and drag "ReportViewer" to Form1;
- Choose your report, and bind data collection;
- Copy the C# or VB .NET sample code into the method Form1_Load;
- Switch to the Solution Explorer, and add the generator DLL to project reference;
- Use "Avapose.matrixbarcode" namespace;
- Run the Windows Forms.
C# code
private void Form1_Load(object sender, EventArgs e)
{
// load data to the data table this.vProductAndDescriptionTableAdapter.Fill
(this.AdventureWorks.vProductAndDescription);
// create a Matrix barcode object
Matrix barcode = new Matrix();
// set barcode type
barcode.MatrixBarcode = MatrixBarcode.PDF417;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
barcode.Data = row.ProductID.ToString();
// set drawing barcode image format
barcode.Format = System.Drawing.Imaging.ImageFormat.Jpeg;
row.Barcode = barcode.drawBarcodeAsBytes();
}
this.reportViewer1.RefreshReport();
}
VB code
Private Sub Form1_Load(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code
loads data into the 'AdventureWorks.vProductAndDescription' table.
You can move, or remove it, as needed.
Me.vProductAndDescriptionTableAdapter.Fill
(Me.AdventureWorks.vProductAndDescription)
Dim barcode As New Matrix()
barcode.MatrixBarcode = MatrixBarcode.PDF417
Dim row As AdventureWorks.vProductAndDescriptionRow
For Each row In Me.AdventureWorks.vProductAndDescription.Rows
' set barcode encoding data value
barcode.Data = row.ProductID.ToString()
' set drawing barcode image format
barcode.Format = System.Drawing.Imaging.ImageFormat.Png
row.Barcode = barcode.drawBarcodeAsBytes()
Next
Me.ReportViewer1.RefreshReport()
End Sub
Related PDF417 Barcode Integration & Generation Information
The following PDF417 barcode integration and creation information links relate to this product that may be of interest to you: