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 Server, load a template, and connect its editing and save actions.
Designer setup. Configure the designer, load the report template, process its callbacks, and connect the save action to the application.
In the screenshot below you can see the result of the sample code:

Designer setup. Configure the designer, load the report template, process its callbacks, and connect the save action to the application.
<StiBlazorDesigner Report="@Report" OnSaveReport="@OnSaveReport" />
@code {
private StiReport Report;
protected override void OnInitialized()
{
this.Report = new StiReport();
this.Report.Load("Reports/TwoSimpleLists.mrt");
}
private void OnSaveReport(StiSaveReportEventArgs args)
{
args.Report.Save("Reports/TwoSimpleLists.mrt");
}
}The OnSaveReport callback receives the edited report through args.Report; here it is saved back to a file, but you can store it in a database or any other location.In the screenshot below you can see the result of the sample code:
