How to Generate Barcodes in Reporting Services using C#
BizCode Generator for Reporting Service is a Custom Report Item (CRI) for Microsoft SQL Server Reporting Services, which could be integrated in Reporting Services reports in .NET. The integrated generator that generates 40+ types of barcodes in SSRS could be managed by Visual C#.NET.
BizCode Generator for Reporting Service Requirements
Windows OS
Compatible with Microsoft Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, etc |
.NET Support
Written by managed code in C#; supports all Microsoft Report Definition Language scenarios such as SQL Report Server projects (RDL) and ReportViewer Local Reports (RDLC) in Visual Studio 2005 / 2008 / 2010 |
BizCode Generator for Reporting Service Test Environment
Test Environment
Microsoft Windows XP, Microsoft Visual Studio 2005, Visual C#.NET |
Test Product
BizCode Generator for Reporting Service |
How to Generate Barcodes in Reporting Service using C#
- Start Visual Studio and create a C# report project with the "Report Server Project Wizard";
- Add a "Data Source" to the project. We are using "AdventureWorks" as our data source;
- Add query string to retrieve data from the data source;
- Choose a "Tabular" report style;
- Use the default settings in "Design the Table" Dialog, and click "Next";
- Choose the default setting for "Table Style";
- Use the default location to deploy the report;
- Set the name of the report and click "Finish" button;
How to Generate Barcodes in Reporting Service using C#
- Right click "Report Items" and select "Choose Items...";
- Go to ".NET Framework Components", and click "Browse..." button;
- Select "BusinessRefinery.Barcode.RS2005.dll" or "BusinessRefinery.Barcode.RS2008.dll";
- Press "OK", you will see four components in your Report Item Toolbox: "WinLinearBarcode" and "WinQRCode", "WinPDF417" and "WinDataMatrix".
How to Generate Barcodes in Reporting Service using C#
- Right-click the table and choose "Insert Column to the Right";
- Set the column header as "Barcode" and then, drag a component directly to the Column "Barcode"; (To generate linear barcodes, just drag WinLinearBarcode, and change barcode type to target one; to generate QR Code, drag WinQRCode; PDF-417, WinPDF417; Data Matrix, WinDataMatrix)
- Change barcode properties using C#w;
- Click "Preview" tab to view the generated barcodes.