Editing a Report Template in the Designer
Our sample projects and report templates can help you learn the basics of working with our products.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.