Automation binding property of the class to report in .net7
and stimulsoft 2023
- linkdin author
- november 2023
in the ViewerController
you can change model and data to create report.
this project depend on ClassBinding
and ClassReport
for bind class and data.
Example of code:
public IActionResult GetReport()
{
var data = GetDataMamadi(); // <--- change data binding
var stimul = new StiReport();
var jsonReport = GetFormatReport(new Mamadi()); // <--- change model binding
stimul.LoadFromString(jsonReport);
stimul.Compile();
stimul.RegData("dt", data);
return StiNetCoreViewer.GetReportResult(this, stimul);
}
this class has duty to get feature of special class
this class has duty to create report of stimulsoft