Page 1 of 1

Changing Background Color of WPF Report Viewer

Posted: Tue Mar 01, 2011 8:40 am
by skizdigidy
Hi, I'm evaluating the WPF Report Viewer and Designer. I can't for the life of me figure out how to change the background color of the report viewer to a different a color. It is currently that grayish/blue color and I really want it to be transparent. I've tried setting the Background property of the StiWpfViewerControl but that doesn't seem to work. I've attached an image showing the area where I want to change the color. Any help would be greatly appreciated. Thanks in advance.

Changing Background Color of WPF Report Viewer

Posted: Wed Mar 02, 2011 1:25 am
by Alex K.
Hello,

We made some improvements in that direction.
You can use the following code:

Code: Select all

StiOptions.Viewer.Windows.BackgroundColor = System.Drawing.Color.Black;
Please check the next prerelease build when it will be available.

Thank you.