This example shows how to show a viewer without toolbar. First, load scripts:
@using Stimulsoft.Base
@using Stimulsoft.Report
@using Stimulsoft.Report.Blazor
@using Stimulsoft.Report.Web
Next, add report viewer:
<!--Report Viewer-->
<StiBlazorViewer Report="@Report" Options="@options" />
After that, initialize options object:
@code
{
private StiReport Report;
private StiBlazorViewerOptions Options;
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
this.Options = new StiBlazorViewerOptions();
...
Then, set option to hide toolbar, view mode to show all pages, turn on the full-screen mode, create empty report object and load report template:
...
this.Options.Toolbar.Visible = false;
this.Options.Toolbar.ViewMode = StiWebViewMode.Continuous;
this.Options.Appearance.FullScreenMode = true;
this.Report = new StiReport();
var reportBytes = await Http.GetByteArrayAsync("Reports/TwoSimpleLists.mrt");
this.Report.Load(reportBytes);
}
}
На скриншоте ниже Вы можете увидеть результат выполнения данного кода: