UPC-E Barcode Creation in Local Reports (RDLC)
- Insert barcode generation capability into Local Reports / RDLC
- Complete user guide provided & special barcode know-how is not required
- Support UPC-E 2 or 5 supplemental digits add-on generation in Report Definition Language Client-Side report
- Create high-quality UPC-E in PNG, BMP, GIF, JPEG, TIFF image formats
- Build compressive reporting solution using Visual Studio 2005, 2008, and 2010
- Rotate UPC-E barcode images in 0, 90, 180 or 270 degree
- Fully integrated with Microsoft SQL Server 2005, 2008 or 2010
- Royalty free with a valid license provided in purchased version
.NET Control for RDLC is an easy-to-configure .NET generation SDK which was completely written in C#.NET 2005. High quality barcode images based on GS1 standard could be easily inserted into Report Definition Language Client-Side report. This barcode control helps you create and print PNG, BMP, GIF, JPEG, TIFF image formats in image files & the memory for RDLC reports.
.NET Barcode Control for Client-side Reporting - UPC-E Information
UPC-E, variant of UPC-A, is a numeric-only, linear barcode belongs to EAN / UPC family. It is the barcode symbol which presents a GTIN-12 in six explicitly encoded digits using the zero-compressing method. Trade items intended to cross Point-of-Sale in a retail outlet should carry a bar code symbol of the EAN/UPC Symbology family such as EAN 13, UPC-A, UPC-E etc.
UPC-E Barcode Generator for RDLC encodes:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
.NET Barcode Control / SDK for RDLC - UPC-E Generation
Requirements:
This part specifies the requirements before using .NET Control for RDLC:
- Windows XP, Windows Vista and Windows 7
- Microsoft Visual Studio 2005, 2008 or 2010
- Microsoft SQL Server 2005, 2008 or 2010
- .NET Framework 2.0, 3.0, 3.5, and advanced version
- Avapose.Barcode for RDLC
Create RDLC Report Project in Visual Studio
- Download Avapose.Barcode for RDLC and unzip it on user's computer;
- Start Visual Studio and create a new Windows Application named "RDLCBarcodeDemo".
- Create a new DataSet and entitle it as "AdventureWorks.xsd".
- Swith to "Pointer", and then drag and drop "TableAdapter" from toolbox to your created DataSet.
- Create a connection to the AdventureWorks SQL Server Database sample and click Next. Then Choose "Use SQL statements" and click Next.
- Enter the following SQL Statement "SELECT ProductID, Name FROM Production.vProductAndDescription WHERE (CultureID = N'en')" and click Finish button.
Create Barcode Images in RDLC Report Project
- Add a new custom column in the DataTable and name it "Barcode". Move to the Properties panel and change data type of "Barcode" column to "System.Byte[]" by manually typing it. Then save the "AdventureWorks.xsd".
- Create a new report and name it "Report1.rdlc".
- Drag and drop an Image item to the "Barcode" column and setting the properties of image: Set "MIMEType" to "image/jpeg" , "Source" to "Database" and "Value" to "=Fields!Barcode.Value" . Then save the report.
- Open the Windows Forms and insert Report Viewer control on the form then choose your created report "Report1.rdlc"
- Copy the VB or C# .NET sample code below into the method Form1_Load, and then run the Windows application.
C# code
private void Form1_Load(object sender, EventArgs e)
{
// load data to the data table this.vProductAndDescriptionTableAdapter.Fill
(this.AdventureWorks.vProductAndDescription);
// create a linear barcode object
Linear barcode = new Linear();
// set barcode type
barcode.LinearBarcode = LinearBarcode.UPCE;
// 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 Linear()
barcode.LinearBarcode = LinearBarcode.UPCE
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 UPC-E Barcode Integration & Generation Information
The following UPC-E barcode integration and creation information links relate to this product that may be of interest to you: