Bunch's Blog

  Home  |   Contact  |   Syndication    |   Login
  48 Posts | 0 Stories | 36 Comments | 0 Trackbacks

News

Tag Cloud


Archives

Green

A lot of the applications I work with utilize SQL Server Reporting Services (SSRS) for reporting. I was shown a way by the previous owner of an app to make a table show up in green bar (alternating colors). I added a function to the XML code for the .rdl to determine if the row is odd or even. Then I would add a <BackgroundColor> entry to each item in the table (again in the XML). It never took too long but was a bit of a pain to setup.

I recently found a MUCH easier way. All you have to do is go into the properties of the TableRow and for the BackgroundColor property add in =iif(RowNumber(Nothing) Mod 2, "Green", "White"). D’oh! This much easier to implement and update.

Technorati Tags:
posted on Friday, March 07, 2008 12:31 PM