Showing a Report in the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.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:
In the screenshot below you can see the result of the sample code:

@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 async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
//Create empty report object
this.Report = new StiReport();
//Load report template
var reportBytes = await Http.GetByteArrayAsync("Reports/TwoSimpleLists.mrt");
this.Report.Load(reportBytes);
}
}In the screenshot below you can see the result of the sample code:
