Editing a Report Template in the Designer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.Embed the report designer in ASP.NET Core Razor Pages, load a template, and connect its editing and save actions.
Adding the designer to a page. Use the
Providing the template. The page model supplies the report and handles the designer's events:
The full designer runs in the browser, letting users build and edit report templates with no desktop software.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

Adding the designer to a page. Use the
@Html.StiNetCoreDesigner helper:@page
@model IndexModel
@using Stimulsoft.Report.Mvc;
@Html.StiNetCoreDesigner(new StiNetCoreDesignerOptions()
{
Actions =
{
GetReport = "GetReport",
DesignerEvent = "DesignerEvent"
}
})Providing the template. The page model supplies the report and handles the designer's events:
public IActionResult OnPostGetReport()
{
var report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, "Reports/TwoSimpleLists.mrt"));
return StiNetCoreDesigner.GetReportResult(this, report);
}
public IActionResult OnPostDesignerEvent()
{
return StiNetCoreDesigner.DesignerEventResult(this);
}The full designer runs in the browser, letting users build and edit report templates with no desktop software.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
