Showing a Dashboard in the Viewer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.Stimulsoft provides native Blazor components, so a dashboard is shown with the viewer tag.
Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
@page "/"
@using Stimulsoft.Report
@using Stimulsoft.Report.Blazor
<StiBlazorViewer Report="@Report" />
@code {
private StiReport Report;
protected override void OnInitialized()
{
base.OnInitialized();
this.Report = StiReport.CreateNewDashboard();
this.Report.Load("Dashboards/DashboardChristmas.mrt");
}
}The <StiBlazorViewer> component binds to a StiReport created with CreateNewDashboard(). The interactive dashboard — charts, tables, gauges and filters — is rendered in the browser.На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
