The web viewer ships with a set of visual themes and appearance options, chosen where the viewer component is declared in the Razor view.

Set the theme and background on the viewer. In Index.cshtml:
@Html.StiNetCoreViewer(new StiNetCoreViewerOptions()
{
    Actions = { GetReport = "GetReport", ViewerEvent = "ViewerEvent" },
    Appearance = { BackgroundColor = System.Drawing.Color.DimGray },
    Theme = StiViewerTheme.Office2022BlackPurple
})

How it works. The theme and appearance are viewer options, so a single declaration in the view controls the look without touching the report or controller.

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.