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
{
    //Report object to use in Viewer
    private StiReport Report;

    //Viewer options object
    private StiBlazorViewerOptions Options;

    protected override void OnInitialized()
    {
        base.OnInitialized();
		
		//Init options object
        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:
...
		
		//Set option to hide toolbar
        this.Options.Toolbar.Visible = false;

        //View mode to show all pages
        this.Options.Toolbar.ViewMode = StiWebViewMode.Continuous;

        //Turning on the full-screen mode
        this.Options.Appearance.FullScreenMode = true;

        //Create empty report object
        this.Report = new StiReport();

        //Load report template
        this.Report.Load("Reports/TwoSimpleLists.mrt");
    }
}

In the screenshot below you can see the result of the sample code:

Showing a Viewer without Toolbar

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.