Alternating Colors in your Sql Svr Report

Who is online?  0 guests and 0 members
Home  »  Blogs  »  SMcDonald  »  Alternating Colors in your Sql Svr Report
 
0
/5
Avg: 0/5: (0 votes)

Comments (2)

JEBacaniSQLDude

For those using SSRS to deliver reports where users save to MS Excel, I would caution which colors are used for the alternating colors.  While the varying grey choices seem to look wonderful in a browser, the color itself may not save well to MS Excel.  Note, this is based mainly on MS Excel 2003, so newer versions may be okay with keeping the alternating colors.

With that said, I recommend Silver and White:

=IIF(RowNumber(Nothing) Mod 2, "Silver", "White")

Just two cents...

9/9/2010
 · 
 
by
TomLannen
TomLannen said:

Great post Sherri!  I have found this very useful several times while writting reports.  One thing that users should be aware of is that this doesn't work perfectly in a table or matrix if you are grouping the rows.   If that is the case you can try this expression instead : =IIf( RunningValue (Fields!FieldName, CountDistinct, Nothing) MOD 2, Color1, Color2) and just substitute the Fields!FieldName for the first field in the report and then it should work fine.  I just did this today as a matter of fact.

 

9/16/2010
 · 
 
by
Blogs RSS Feed

SMcDonald's latest blog posts

Blogs RSS Feed

Latest community blog posts