The web viewer ships with a set of visual themes and configurable appearance options. This example changes the viewer's theme and background color.

Setting the theme. Assign a value from StiViewerTheme and adjust the appearance in the viewer options:
@using Stimulsoft.Report.Web;

@Html.StiNetCoreViewer(new StiNetCoreViewerOptions()
{
    Actions = { GetReport = "GetReport", ViewerEvent = "ViewerEvent" },
    Appearance = { BackgroundColor = System.Drawing.Color.Gainsboro },
    Theme = StiViewerTheme.Office2013VeryDarkGrayPurple
})
Dozens of themes are available (light and dark Office variants and more), and the Appearance block controls colors, scrollbars and other visual details, so the viewer can be matched to the look of your web application.

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.