The viewer can be shown without its toolbar for a clean, read-only preview. This example configures viewer options and passes them to the component.

Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
<StiBlazorViewer Report="@Report" Options="@Options" />

@code {
    private StiReport Report;
    private StiBlazorViewerOptions Options;

    protected override void OnInitialized()
    {
        base.OnInitialized();
        this.Options = new StiBlazorViewerOptions();
        this.Options.Toolbar.Visible = false;
        this.Options.Toolbar.ViewMode = StiWebViewMode.Continuous;
        this.Options.Appearance.FullScreenMode = true;

        this.Report = new StiReport();
        this.Report.Load("Reports/TwoSimpleLists.mrt");
    }
}
A StiBlazorViewerOptions object is passed through the Options parameter. Here the toolbar is hidden, all pages are shown continuously, and full-screen mode is enabled.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.