Articles in this section
Category / Section

Integrating Barcode Extension with Bold Reports in WPF .NET Core

Published:
Updated:

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:

  1. Right-click on your WPF Report Viewer project and select Add -> Project Reference.
  2. Select the downloaded BoldReports.Extensions.BarcodeCRI project reference and click OK.

Refer to the image below for guidance:

BarcodeExtension.png

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:

Output.png

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.

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied