Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET SSRS Barcode > Generate .NET, C#, VB.NET Barcodes in Reporting Service 2005
Download Barcode for Reporting Services Trial

How to Generate Barcode in Microsoft Reporting Service 2005

.NET Reporting Services 2005 Barcoding Prerequisites
  • BarcodeLib.Barcode.ReportingService05.dll, BarcodeLib.Barcode.ReportingService05CRI.dll
  • Microsoft .NET Framework 2.0 (or later)
  • Microsoft Reporting Services 2005
Config Sample Database file
We have provided one demo data file named "BarcodeDemoData.mdb" in our trial package. In the following steps, we will config ODBC driver for that data file.
  1. Open "Control Panel". Go to "Start", and click menu "Control Panel".
  2. Click "Administrative Tools".
  3. Click "Data Sources (ODBC)".
  4. In "ODBC Data Source Administrator", click tab "System DSN".
  5. Click button "Add..." on the right side of the form. view image
  6. In "Create New Data Source" form, select "Driver do Microsoft Access (*.mdb)", and click "Finish" button. view image
  7. In "ODBC Microsoft Access Setup" form, fill "Data Source Name" as "BarcodeDataSource", then click "Select..." button. view image
  8. In "Select Database" form, go to your downloaded package, and select "BarcodeDemoData.mdb" file, and click "OK" button. view image
  9. In "ODBC Microsoft Access Setup" form, click "OK" button.
  10. Now you can find new entry in "System Data Sources: " section. view image
  11. Click "OK" button to close it.
Deploy and Install SSRS 2005 Barcode Library
  1. Copy BarcodeLib.Barcode.ReportingService05.dll, BarcodeLib.Barcode.ReportingService05CRI.dll to Visual Studio private assemblies directory (by default C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies).
  2. Copy BarcodeLib.Barcode.ReportingService05.dll, BarcodeLib.Barcode.ReportingService05CRI.dll to Microsoft SQL Server Reporting Services bin directory (by default C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin).
  3. Edit rsreportserver.config file under "C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer".
     <Configuration>
...

<Extensions>

...

<ReportItems>

<ReportItem Name="LinearBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05CRI.LinearReportServiceCRI, BarcodeLib.Barcode.ReportingService05CRI" />
<ReportItem Name="DataMatrixBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05CRI.DataMatrixReportServiceCRI, BarcodeLib.Barcode.ReportingService05CRI" />
<ReportItem Name="PDF417BarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05CRI.PDF417ReportServiceCRI, BarcodeLib.Barcode.ReportingService05CRI" />
<ReportItem Name="QRCodeBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05CRI.QRCodeReportServiceCRI, BarcodeLib.Barcode.ReportingService05CRI" />
</ReportItems>


</Extensions>

</Configuration>
4. Edit rssrvpolicy.config under the same folder with rsreportserver.config.
     <CodeGroup class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Description="This code group grants BarcodeLib.Barcode.ReportingService05CRI.dll Full Trust permission. ">
<IMembershipCondition
class="UrlMembershipCondition"
version="1"
Url="C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\
ReportServer\bin\BarcodeLib.Barcode.ReportingService05CRI.dll" />
</CodeGroup>
5. Edit rsreportdesigner.config under "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies".
     <ReportItems>
<ReportItem Name="LinearBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05CRI.LinearReportServiceCRI, BarcodeLib.Barcode.ReportingService05CRI" />
<ReportItem Name="DataMatrixBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05CRI.DataMatrixReportServiceCRI, BarcodeLib.Barcode.ReportingService05CRI" />
<ReportItem Name="PDF417BarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05CRI.PDF417ReportServiceCRI, BarcodeLib.Barcode.ReportingService05CRI" />
<ReportItem Name="QRCodeBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05CRI.QRCodeReportServiceCRI, BarcodeLib.Barcode.ReportingService05CRI" />
</ReportItems>

<ReportItemDesigner>
<ReportItem Name="LinearBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05.LinearReportService, BarcodeLib.Barcode.ReportingService05" />
<ReportItem Name="DataMatrixBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05.DataMatrixReportService, BarcodeLib.Barcode.ReportingService05" />
<ReportItem Name="PDF417BarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05.PDF417ReportService, BarcodeLib.Barcode.ReportingService05" />
<ReportItem Name="QRCodeBarcodeControl2005"
Type="BarcodeLib.Barcode.ReportingService05.QRCodeReportService, BarcodeLib.Barcode.ReportingService05" />
</ReportItemDesigner>
Create Barcode Image in Your Reporting Project
  1. Start with creating a report: Select File | New | Project accordingly from the menu of VS 2005. Choose Business Intelligence Projects as the project type and use the template Report Server Project Wizard. Give a name to this sample report. Click OK to finish report creation. view image
  2. In "Report Wizard" form, keyin name as "BarcodeDemoData", select type as "ODBC", and click "Edit.." button. view image
  3. In "Connection Properties" form, select "use user or system data source name:" as "BarcodeDataSource", and click "OK" button. view image
  4. In "Report Wizard" form, click "Next" button.
  5. Type in "SELECT * FROM Customer;" in "Query String:" field. Click "Next". view image
  6. Select report type form, select "Tabular" as default. Click "Finish".
  7. In report designer panel, add a new column "Barcode" to the table, by right click column "Customer" header, and select "Insert Column to the right" menu. view image
  8. For the new column "Barcode", set name as "Barcode". Add Reporting Services Barcode Controls to Toolbox and drop "LinearBarcodeControl2005" to the data section. view image
  9. Set "BarcodeData" property to "=Fields!CustomerId.Value". view image
  10. You can preview the report by clicking "Preview" tab. view image
Other Related .NET Barcode Generator SDKs