Customizing the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.The viewer exposes many options for appearance and toolbar contents. This example tunes the toolbar, colors, zoom and size.
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 options = new Stimulsoft.Viewer.StiViewerOptions();
options.appearance.scrollbarsMode = true;
options.appearance.pageBorderColor = Stimulsoft.System.Drawing.Color.navy;
options.toolbar.showPrintButton = false;
options.toolbar.viewMode = Stimulsoft.Viewer.StiWebViewMode.WholeReport;
options.toolbar.zoom = 50;
options.width = "1000px";
options.height = "500px";
var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);The appearance and toolbar option groups control colors, scrollbars, which buttons appear, the initial zoom and view mode, and the overall size — so the viewer can range from a full-featured preview to a minimal, read-only display.