all groups > sql server reporting services > april 2007 >
You're in the

sql server reporting services

group:

reportviewer theme


reportviewer theme Engin POLAT
4/5/2007 12:00:00 AM
sql server reporting services:
hello there,

i asked before, but didn't take any answer, maybe this time.. :)

i use asp.net 2.0 and reportviewer component with local mode..
when i open report in reportviewer, allways shown with yellow toolbar..

but rest of my site has green-orange colors..

how can i change reportviewer's toolbar color??

thanks a lot..

Re: reportviewer theme Lisa Slater Nicholls
4/5/2007 10:23:07 PM
[quoted text, click to view]

I'll give this a shot although, to be honest, I don't use local mode at
all... I saw Julien's answer to your earlier question, indicating that he
had tried CSS to do this setting the backcolor...

Looking at the docs, for the Winforms version of the client control, you
would have to use the control's Backcolor property to do this. Yep, just
tried that, it works.

Still looking at the Winforms version I don't see anything allowing you to
set the appearance of the WInforms version of the toolbar per se. But you
can hide the toolbar (set ShowToolbar false) and set up your own navigation:
the ReportViewer control has a settable CurrentPage and allows you to query
the current total number of pages.

Now, turning to the Webforms version of the control. I see the same
Backcolor property, plus a bunch of specific-to-Toolbar style attributes.
(This is just based on browsing the object model. The Backcolor property is
there, I see no reason why it wouldn't work.)

I don't think that you will be able to override these style details of the
webforms control easily using CSS -- you'd have to know what styles
exactly, or on what elements, to write the overrides. The CSS file that
Julien probably tried to change is the one that affects the Report Manager,
not the web forms control.

I guess it would be possible to define an HTTP handler that might intercept
all the generated HTML, examine it, and fix it as it went through! Doesn't
sound like fun to me, I'd go with the exposed properties of the control
object for this.

Hope this helps

[quoted text, click to view]
AddThis Social Bookmark Button