Settings
Setting the WebViewerSL can be done using the properties, which are described in the StiWebViewerSL class.
Control Panel
A list of properties for customizing the WebViewerSL toolbar:
| Name | Description |
|---|---|
| ShowMainToolBar | Property is used to show/hide the Tool Bar. If the ShowMainToolBar property is set to true, then the Tool Bar panel will be shown. If the ShowMainToolBar property is set to false, then the Tool Bar panel will be hidden. By default the property is set to true. |
| ShowPrintButton | Property is used to show/hide the Print button. If the ShowPrintButton property is set to true, then the Print button will be shown. If the ShowPrintButton property is set to false, then the Print button will be hidden. By default the property is set to true. |
| ShowReportOpenButton | Property is used to show/hide the Open button. If the ShowReportOpenButton property is set to true, then the Open button will be shown. If the ShowReportOpenButton property is set to false, then the Open button will be hidden. By default the property is set to true. |
| ShowReportSaveButton | Property is used to show/hide the Save button. If the ShowReportSaveButton property is set to true, then the Save button will be shown. If the ShowReportSaveButton property is set to false, then the Save button will be hidden. By default the property is set to true. |
| ShowPageNewButton | Property is used to show/hide the Page New button. If the ShowPageNewButton property is set to true, then the Page New button will be shown. If the ShowPageNewButton property is set to false, then the Page New button will be hidden. By default the property is set to true. |
| ShowPageDeleteButton | Property is used to show/hide the Page Delete button. If the ShowPageDeleteButton property is set to true, then the Page Delete button will be shown. If the ShowPageDeleteButton property is set to false, then the Page Delete button will be hidden. By default the property is set to true. |
| ShowPageDesignButton | Property is used to show/hide the Edit button. If the ShowPageDesignButton property is set to true, then the Edit button will be shown. If the ShowPageDesignButton property is set to false, then the Edit button will be hidden. By default the property is set to true. |
| ShowPageSizeButton | Property is used to show/hide the Page Size button. If the ShowPageSizeButton property is set to true, then the Page Size button will be shown. If the ShowPageSizeButton property is set to false, then the Page Size button will be hidden. By default the property is set to true. |
| ShowBookmarksPanel | Property is used to show/hide the Bookmarks panel. If the ShowBookmarksButton property is set to true, then the Bookmarks panel will be shown. If the ShowBookmarksButton property is set to false, then the Bookmarks panel will be hidden. By default the property is set to true. |
| ShowToolFindButton | Property is used to show/hide the Find button. If the ShowToolFindButton property is set to true, then the Find button will be shown. If the ShowToolFindButton property is set to false, then the Find button will be hidden. By default the property is set to true. |
| ShowFullScreenButton | Property is used to show/hide the Full Screen button. If the ShowFullScreenButton property is set to true, then the Full Screen button will be shown. If the ShowFullScreenButton property is set to false, then the Full Screen button will be hidden. By default the property is set to true. |
| ShowZoomOnePageButton | Property is used to show/hide the One Page button. If the ShowZoomOnePageButton property is set to true, then the One Page button will be shown. If the ShowZoomOnePageButton property is set to false, then the One Page button will be hidden. By default the property is set to true. |
| ShowZoomTwoPagesButton | Property is used to show/hide the Two Pages button. If the ShowZoomTwoPagesButton property is set to true, then the Two Pages button will be shown. If the ShowZoomTwoPagesButton property is set to false, then the Two Pages button will be hidden. By default the property is set to true. |
| ShowZoomPageWidthButton | Property is used to show/hide the Page Width button. If the ShowZoomPageWidthButton property is set to true, then the Page Width button will be shown. If the ShowZoomPageWidthButton property is set to false, then the Page Width button will be hidden. By default the property is set to true. |
| ShowToolEditorButton | Property is used to show/hide the Tool Editor button. If the ShowToolEditorButton property is set to true, then the Tool Editor button will be shown. If the ShowToolEditorButton property is set to false, then the Tool Editor button will be hidden. By default the property is set to true. |
Navigation Panel
The properties of the WebViewerSL navigation panel are described below.
| Name | Description |
|---|---|
| ShowFirstPageButton | Property is used to show/hide the First Page button. If the ShowFirstPageButton property is set to true, then the First Page button will be shown. If the ShowFirstPageButton property is set to false, then the First Page button will be hidden. By default the property is set to true. |
| ShowPageLastButton | Property is used to show/hide the Last Page button. If the ShowPageLastButton property is set to true, then the Last Page button will be shown. If the ShowPageLastButton property is set to false, then the Last Page button will be hidden. By default the property is set to true. |
| ShowPageGoToButton | Property is used to show/hide the Go to Page button. If the ShowPageGoToButton property is set to true, then the Go to Page button will be shown. If the ShowPageGoToButton property is set to false, then the Go to Page button will be hidden. By default the property is set to true. |
| ShowPageNextButton | Property is used to show/hide the Next Page button. If the ShowPageNextButton property is set to true, then the Next Page property is set to false, then the ShowPageNextButton property is set to false, then the Next Page button will be hidden. By default the property is set to true. |
| ShowPreviousPageButton | Property is used to show/hide the Previous Page button. If the ShowPreviousPageButton property is set to true, then the Previous Page button will be shown. If the ShowPreviousPageButton property is set to false, then the Previous Page button will be hidden. By default the property is set to true. |
Zooming
The properties of the WebViewerSL Zoom panel are described below:
| Name | Description |
|---|---|
| ShowPageViewSingleModeButton | Property is used to show/hide the Single Page button. If the ShowPageViewSingleModeButton property is set to true, then the Single Page button will be shown. If the ShowPageViewSingleModeButton property is set to false, then the Single Page button will be hidden. By default the property is set to true. |
| ShowPageViewContinuousModeButton | Property is used to show/hide the Continuous button. If the ShowPageViewContinuousModeButton property is set to true, then the Continuous button will be shown. If the ShowPageViewContinuousModeButton property is set to false, then the Continuous button will be hidden. By default the property is set to true. |
| ShowPageViewMultipleModeButton | Property is used to show/hide the Multiple Pages button. If the ShowPageViewMultipleModeButton property is set to true, then the Multiple Pages button will be shown. If the ShowPageViewMultipleModeButton property is set to false, then the Multiple Pages button will be hidden. By default the property is set to true. |
| ShowSliderZoomControl | Property is used to show/hide the Zoom slider. If the ShowZoom property is set to true, then the Zoom slider will be shown. If the ShowZoom property is set to false, then the Zoom slider will be hidden. By default the property is set to true. |
| ZoomMode | Is used to change report zoom. This property has the following values: Default, OnePage, TwoPages, PageWidth. The Default value sets previously saved zoom of a report in WebViewerSL. So, if a report was saved with 37% zoom then, when opening it next time, 37% zoom of a report showing remains; The PageWidth value sets zoom by Page Width. So the width of the report template matches the width of the window of the web designer; The OnePage value sets zoom by One Page. So the entire page of the report template fits in the window of the web viewer; The TwoPages value sets zoom by Two Pages. So two pages of a report fit by height and width the window of the WebViewerSL. |
| Zoom | Property is used to change the report zoom in the viewer. This property can have any value from 0 to 100, where the Zoom value is zoom in percent.For example, if the Zoom property is set to 70, the zoom in the viewer will be equal to 70 percent. |