Changing Background Color of WPF Report Viewer

Stimulsoft Reports.WPF discussion
Post Reply
skizdigidy
Posts: 2
Joined: Tue Mar 01, 2011 8:25 am
Location: Phoenix

Changing Background Color of WPF Report Viewer

Post 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.
Attachments
866.Background.png
866.Background.png (6.77 KiB) Viewed 2097 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Changing Background Color of WPF Report Viewer

Post 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.
Post Reply