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.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.