Because the viewer is just a React component, you can place several instances on one page. This example shows two independent viewers side by side.

Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
function App() {
    var viewerOptions = new Stimulsoft.Viewer.StiViewerOptions();
    viewerOptions.appearance.scrollbarsMode = true;
    viewerOptions.height = "100vh";

    var report1 = new Stimulsoft.Report.StiReport();
    report1.loadFile('Reports/SimpleList.mrt');
    var report2 = new Stimulsoft.Report.StiReport();
    report2.loadFile('Reports/TwoSimpleLists.mrt');

    return (
        <div className='container-viewer'>
            <Viewer report={report1} options={viewerOptions} />
            <Viewer report={report2} options={viewerOptions} />
        </div>
    );
}
Each <Viewer> holds its own report and options, so multiple previews coexist on the same page without interfering — useful for dashboards or comparison views.

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.