We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create RDLC report using Business Object Data Source in Syncfusion ASP.NET Core Report Viewer

Platform: ASP.NET Core |
Control: ReportViewer |
Published Date: January 24, 2019 |
Last Revised Date: January 24, 2019

Syncfusion ReportViewer supports loading RDLC reports using the Business Object Data Source. You can create the RDLC reports using any one of the following options to preview in the ReportViewer:

  • Microsoft Visual Studio Report Wizard.
  • Syncfusion Report Designer.

 

Syncfusion Report Designer

Click here to create an RDLC report in the Report Designer through the Wizard.

 

Microsoft Visual Studio Report Wizard

To create an RDLC report using Microsoft Visual C#, follow these steps:

  1. Open Microsoft Visual studio in the New Project dialog box.
  2. Choose Visual C# and select the template based on required project type like Console application, WPF, ASP.Net MVC.
  3. Give name for the project and click OK.
  4. In the Project menu, select Add New Item and choose Class. Then, name it as SalesPersons and click Add.
  5. Replace the default code for SalesPersons.cs with the following code.

 

  1. In the Project menu, select Build Solution. This creates an assembly for the object, which will be used as a data source for the report.
  2. Right-click the project and go to the Add New Item dialog. Select Report Wizard, and name it as Sales Dashboard.rdlc for the report, and then click Add. This shows the Report Wizard dialog.
  3. In the Choose a Data Source Type page, select Object and click Next.
  4. In the Select the Data Objects page, expand the class hierarchy until you see Products in the list. Select Products and click Finish.

 

  1. In the Dataset Properties page, check the Available datasets box and verify whether the Product is selected and click Next.
  2. In the Arrange Fields page, drag Name, QS1, QS2, QS3, QS4 from the available fields to the Values box. Click Next twice, and then click Finish. This will create an .rdlc file and open it in the designer page and display the created Tablix report item.
  3. Save the Sales Dashboard.rdlc file. Now, the created reports can be used to preview in the Syncfusion reporting controls.

 

References to load created RDLC report in ReportViewer

Click here to create a simple application and load the RDLC report in the ASP.NET Core ReportViewer.

 

Note: You can create a data source in the same application or in the separate application to use it as assembly for report data source.

2X faster development

The ultimate ASP.NET Core UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile