Search results
Suggest a FeaturePDF

How to configure data source extension

This section explains the steps required to register and load data extensions in Web Report Designer ASP.NET core application. In the report designer application, only below set of data connectors are provided as in-built data sources.

Built in data connectors

Other data connectors like Web API, JSON, XML, and OData are provided as separate nuget packages. Follow the steps provided in this section to register and connect with these data connectors in report designer application.

Create report designer ASP.NET core application

Refer Getting Started and create a Report Designer ASP.NET core application.

Install data source extension NuGet

Based on the required data connector install the respective NuGet package in the application. The NuGet packages name for each data connectors are provided in below table,

Data source Package Name Assembly Name
Web data sources(WebAPI, JSON, XML, and OData) BoldReports.Data.WebData BoldReports.Data.WebData.dll

For example, to register and load web data sources in the application install BoldReports.Data.WebData package in the application.

Right-click the project or solution in the Solution Explorer tab, and choose Manage NuGet Packages. Alternatively, select the Tools > NuGet Package Manager > Manage NuGet Packages for Solution menu command.

Refer to the NuGet Packages to learn more details about installing and configuring Report Designer NuGet packages.

Search for BoldReports.Data.WebData NuGet package, and install it in your application.

Built in data connectors

BoldReports.Data.WebData will install into your application. Click OK. Now, the assembly will be added in the respective project references.

Assembly reference

Register web data source extension in application startup

  1. Open the code-behind file Startup.cs and add the following using statement.

        using BoldReports.Web;
  2. Then add the the following code to register extension assembly in Startup method.

        public Startup(IConfiguration configuration, IWebHostEnvironment _hostingEnvironment)
        {
            //Use the below code to register extensions assembly into report designer
            ReportConfig.DefaultSettings = new ReportSettings().RegisterExtensions(new List<string> { "BoldReports.Data.WebData" });
    
            Configuration = configuration;
            env = _hostingEnvironment;
        }

To register multiple data extensions in the application, provide the assembly name’s as list of strings.

Connect with data

  1. Launch the application. Click the Data icon in the configuration panel to open a Data configuration panel. Create new reporting application project
  2. Click on the NEW DATA button in DATA panel. Create new reporting application project
  3. In list of connection types, you can find Web API, OData, JSON, and XML connection types. Loaded web data sources

Refer Data connectors section and connect with these data sources in the Report Designer.