Integrating Barcode Extension with Bold Reports in WPF .NET Core
Integrating barcode functionality into WPF .NET Core applications can significantly enhance reporting capabilities. Bold Reports provides an easy way to include barcode extensions in reports. This article outlines the steps to add a barcode extension to the Bold Reports Report Viewer in a WPF .NET Core application.
Step 1: Download the Custom Barcode Extension Project
First, obtain the custom Barcode Extension project by downloading it from the provided link.
Step 2: Add Project Reference
Once downloaded, add the custom Barcode Extension project to your application:
- Right-click on your WPF Report Viewer project and select Add -> Project Reference.
- Select the downloaded BoldReports.Extensions.BarcodeCRI project reference and click OK.
Refer to the image below for guidance:
Step 3: Configure the App.config File
Next, create a new App.config file in your project if it does not already exist. Then, add the following configuration section to the App.config file.
<configuration>
<configSections>
<section name="ReportingExtensions" type="BoldReports.Configuration.Extensions, BoldReports.WPF" allowLocation="true" allowDefinition="Everywhere" />
</configSections>
<ReportingExtensions>
<ReportItems>
<ReportItem Name="Barcode" Assembly="BoldReports.Extensions.BarcodeCRI" Type="BoldReports.Extensions.BarcodeCRI.BarcodeCustomReportItem" />
<ReportItem Name="matrixbarcode" Assembly="BoldReports.Extensions.BarcodeCRI" Type="BoldReports.Extensions.BarcodeCRI.BarcodeCustomReportItem" />
</ReportItems>
</ReportingExtensions>
</configuration>
Note: This configuration specifies the custom report items that you are adding to your reports, in this case, barcode and matrix barcode items.
Output snapshot:
By following these steps, you can successfully integrate barcode functionality into your WPF .NET Core applications using Bold Reports. This will allow you to preview the reports with barcode elements, which can be essential for inventory management, tracking systems, and other applications that require quick identification of items.
You can find the WPF .NET Core Report Viewer Sample application with the Custom Barcode Extension Project at the following link.