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.

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