Showing a Report in the Viewer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.This example shows how to show a report in the viewer. First, load scripts:
Next, add report viewer:
After that, create report object and load report template:
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

@using Stimulsoft.Base
@using Stimulsoft.Report
@using Stimulsoft.Report.Blazor
Next, add report viewer:
<!--Report Viewer-->
<StiBlazorViewer Report="@Report" />
After that, create report object and load report template:
@code
{
//Report object to use in viewer
private StiReport Report;
protected override void OnInitialized()
{
base.OnInitialized();
//Create empty report object
this.Report = new StiReport();
//Load report template
this.Report.Load("Reports/TwoSimpleLists.mrt");
}
}На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
