Card

How to add Stimulsoft in ASP.NET Core and send data to it

Stimulsoft is one of the most popular reporting software among web developers. It develops reporting tools for a variety of platforms (WinForms, ASP.NET, ASP.NET MVC, .NET Core, JavaScript, Java, PHP, WPF). In this article, I am going to show how to use it in ASP.NET Core MVC. Also, I will create a model and a variable then send them to Stimulsoft.

  1. Create a new MVC project

2- Search Stimulsoft.Reports.Web.NetCore package and install it

 

3- Download Stimulsoft software and install it. Then, open the Stimulsoft and create a new report with some fields as following:

3- Create a new object

4- Check the business object

Category: TestModel

Name: TestModel

Alias: TestModel

Then create 4 fields (id: int, name: string, age:int, email:string)

5- Right click on Variables and select New Variable

Name of variable is CompanyName

6- create a header on your report

7- drag the CompanyName variable in the header that you added

8- create a data-bound under the header

When you add the data header please select the object that you have created before

9- Then arrange your object as you want:

10- Save this file as myreport.mrt name in your project path: wwwroot/report/ myreport.mrt