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 @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.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.