Change ReportViewer Style
Hi, Plz can you tell me how to change the reportViewer style, for example how can i change the color of the button 'Show Report' or the viewer background.Thanks Regards Aya
September 27th, 2010 1:48pm
Hi, Reporting Services provides default cascading style sheets (.css) files that define styles for the report toolbar in HTML Viewer and for Report Manager’s homepge. You could modify the default styles to change the colors, fonts, and layout of the toolbar or Report Manager. However it is not recommended to do this, as neither the default style sheets nor instructions for modifying the style sheets are documented. So if you choose to customize the style sheets, be sure to create a backup of all default .css files before making any modifications. The following table describes the style sheet (.css) files that are used in a Reporting Services installation. Style sheet Description Htmlviewer.css Provides a sample style sheet that you can use as a template to create custom styles for the report toolbar in HTML Viewer. The default styles used by HTML Viewer are compiled into the report server. The Htmlviewer.css file provides a sample of the styles that the viewer uses. ReportingServices.css Defines styles for Report Manager. Here you can create a customizing CSS file for for HTML Viewer. Lay the .css files into folder <drive>:\Program Files\Microsoft SQL Server\MSSQL.n\Reporting Services\ReportServer\Styles You can modify the RSReportServer.config file to specify a custom style sheet for HTML Viewer. The <HTMLViewerStyleSheet> setting is not included in the file by default. You must type it into the <Configuration> selection of the RSReportServer.config file and then specify the style sheet you want to use. For more information about Customizing Style Sheets for HTML Viewer and Report Manager click this link http://msdn.microsoft.com/en-us/library/ms345247.aspx You could built customize web application to implement all the button function by coding. Click this link for a reference: http://www.izenda.com/Site/KB/Print50290.aspx Regards, Challen Fu
October 4th, 2010 8:40am
Thank you Challen for your reply and for the solution given above.
October 6th, 2010 5:55pm
Hi Aya02, Since my reply help you, Now I mark it as answer, if you have any question or concern, please feel free to ask.
October 8th, 2010 1:39am