Aspose.BarCode for Reporting Services allows .NET developers to easily add barcode images to SQL Server reports. Barcode image can be dragged & dropped from the Visual Studio Toolbox onto the reports of SQL Reporting Services, just like window and web form controls.
To add Aspose.BarCode for Reporting Services to your Visual Studio 2005 toolbox, follow the steps below:
Step 1. Download and install the latest version of Aspose.BarCode for Reporting Services.
Step 2. Copy Aspose.BarCode.ReportingServices.dll to the PrivateAssemblies folder of your IDE. PrivateAssemblies folder of Visual Studio 2005 is usually found at [program files]\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies.
Note: Aspose.BarCode.ReportingServices.dll is located at your installation folder's Bin sub folder.
Step 3. Register this product as render item in RSReportDesigner.config. Edit the RSReportDesigner.config file in the private assembly folder and add the following code:
<Configuration>
<Extensions>
<!-- Start config for Aspose.BarCode for Reporting Services-->
<ReportItemDesigner>
<ReportItem Name="BarCode" Type="Aspose.BarCode.ReportingServices.BarCodeReportItemDesigner, Aspose.BarCode.ReportingServices" />
</ReportItemDesigner>
<ReportItems>
<ReportItem Name="BarCode" Type="Aspose.BarCode.ReportingServices.BarCodeReportItem, Aspose.BarCode.ReportingServices" />
</ReportItems>
<!-- End of config -->
</Extensions>
</Configuration>
Step 4. Now, give permissions to preview. In PrivateAssemblies folder, edit the RSPreviewPolicy.config file and add the following code:
<configuration>
<mscorlib>
<security>
<policy>
<PolicyLevel version="1">
<CodeGroup class="FirstMatchCodeGroup" version="1" PermissionSetName="Nothing">
<CodeGroup class="FirstMatchCodeGroup" version="1" PermissionSetName="Execution" Description="This code group grants MyComputer code Execution permission. ">
<!-- code to add...... -->
<CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="BarCode" Description="Aspose.BarCode for Reporting Services ">
<IMembershipCondition class="StrongNameMembershipCondition" version="1" PublicKeyBlob="0x00240000048000009400000006020000002400005253413100040000010001005542E99CECD28842DAD186257B2C7B6AE9B5947E51E0B17B4AC6D8CECD3E01C4D20658C5E4EA1B9A6C8F854B2D796C4FDE740DAC65E834167758CFF283EED1BE5C9A812022B015A902E0B97D4E95569EB8C0971834744E633D9CB4C4A6D8EDA03C12F486E13A1A0CB1AA101AD94943236384CBBF5C679944B994DE9546E493BF" />
</CodeGroup>
<!-- end ......... -->
</CodeGroup>
</CodeGroup>
</PolicyLevel>
</policy>
</security>
</mscorlib>
</configuration>
Step 5. Start Visual Studio and create a Report Server Project . After the project is created, right-click on Reports in Solution Explorer and click on New Item by pointing to Add. Now click Report in Add New Itemand this way, a report, Report1.rdl will be created. During design mode of your reports, open Toolbox panel and right click on it. Now select Choose Items... option from the context menu.
Step 6. In Choose Toolbox Items dialog box, click .NET Framework Components tab and browse to PrivateAssemblies folder to select Aspose.BarCode.ReportingServices.dll. This will add an icon of Aspose.BarCode for Reporting Services in the toolbox.
Step 7. Now, you can drag and drop BarCode report item on your report and start producing reports (with barcodes) using Aspose.BarCode for Reporting Services.