Customizing the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.The viewer's toolbar and export options can be trimmed to expose only the features you want. This example hides the Open button and the PDF export.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
var viewerOptions = new Stimulsoft.Viewer.StiViewerOptions();
viewerOptions.appearance.theme = Stimulsoft.Viewer.StiViewerTheme.Office2022LightGrayTeal;
viewerOptions.appearance.fullScreenMode = true;
viewerOptions.toolbar.showOpenButton = false;
viewerOptions.exports.showExportToPdf = false;
return <Viewer options={viewerOptions} report={report} />;The toolbar and exports option groups switch individual buttons and export formats on and off, so you can present anything from a full-featured viewer to a minimal one limited to specific actions.