Izenda, LLC

Ad Hoc Reports & Dashboards for ASP.NET Apps

Free Trial

Izenda Reports is licensed on a "per user" or "per server" basis. Please complete this form to receive a price quote.

All fields are required.

The live demo demonstrates Izenda reports with the Northwind Sample database. To login, please register below.

All fields are required.

Please register to try Izenda reports on your data today.

All fields are required.

How do I change the style of the report viewer?

Expand / Collapse
 

How do I change the style of the report viewer?


The below sample allows you to change the style of the ReportViewer.
HtmlTable toptable;

        toptable = (HtmlTable)HtmlOutputReportResults1.FindControl("ReportControlTable");
        toptable.Attributes["class"] = "ReportViewerTopTable";
        toptable.CellSpacing = 5;

        HtmlTable bottomtable;

        bottomtable = (HtmlTable)HtmlOutputReportResults1.FindControl("FiltersTable");
        bottomtable.Attributes["class"] = "ReportViewerTopTable";
        bottomtable.BgColor = "#EEEEEE";
        bottomtable.Style.Clear();
        bottomtable.Border = 1;
        bottomtable.BorderColor = "#EEEEEE";

        HtmlTableCell toolcell;

        toolcell = (HtmlTableCell)HtmlOutputReportResults1.FindControl("ToolBarHeader");
        toolcell.Attributes["class"] = "ToolBarHeader";
        toolcell.BgColor = "#EEEEEE";
        toolcell.BorderColor = "#EEEEEE";
        toolcell.Style.Clear(); 


The sample image below is the results of the sample code above.




Details
Type: FAQ
Options