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.
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.

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.