combit List & Label 30 - .NET Help
combit.Reporting.Web Namespace / WebReportViewerTheme Class
Members


WebReportViewerTheme Class
Initializes a new instance of the WebReportViewerTheme class that contains the default theme for the Web Report Viewer. The theme can be applied by setting the "theme"-property of the Web Report Viewer component to the serialized JSON or by using the @Html.WebReportViewer helper.
Object Model
WebReportViewerTheme ClassWebReportViewerThemeButton ClassWebReportViewerThemeColors ClassWebReportViewerThemeMessageColors ClassWebReportViewerThemeSize Class
Syntax
'Declaration
 
Public Class WebReportViewerTheme 
 
Example
@{
    var theme = new WebReportViewerTheme();

    theme.Colors.NavigationColor = "#495057";
    theme.Colors.NavigationBorderColor = "#495057";
    theme.Colors.NavigationColorSelected = "#343a40";
    theme.Colors.NavigationColorHover = "#6c757d";
    theme.Colors.SideBarColor = "#495057";
}
 
@Html.WebReportViewer("Vorschau", projectId, theme: theme);
  
<ll-webreportviewer
backendUrl="https://example.com/WebReportViewer"
defaultProject="57956062-8D88-4233-8187-673B27B12001"
theme="{'Colors':{
        'NavigationColor':'#495057',
        'NavigationBorderColor':'#495057',
        'NavigationColorSelected':'#343a40',
        NavigationColorHover':'#6c757d',
        'SideBarColor':'#495057'
        }}"
>
</ll-webreportviewer>
Inheritance Hierarchy

System.Object
   combit.Reporting.Web.WebReportViewerTheme

Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also