logo
  You are not logged in Join Log In
Navigation
Log In
[join]

[lost]

 
User Info
 Post to programmabilities.post [at] blogger.com
blogroll

Programmabilities Blog

2008-05-09

 
SQL Server 2005 Reports: tips
SSRS:
  • Page Header:
    • TextBox via Expression...: =Globals.ReportFolder & Globals.ReportName
  • Page Footer:
    • Page Footer: TextBox via Expression...: =Format(Globals!PageNumber) + " of " + Format(Globals!TotalPages) + " pages"
    • ="Printed by " + User!UserID + " on " + DateTime.Now.ToString()
    • ="Execution Time: " + IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).TotalSeconds < 1, "0 seconds", ( IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Hours > 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Hours & " hour(s), ", "") + IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes > 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes & " minute(s), ", "") + IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Seconds > 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Seconds & " second(s)", "")) )
  • Body:
    • TextBox via Expression...: =Format(Sum(Fields!Account.Value), "C0") (Works if column is numeric data type.)
    • Alternate rows by adding the following to the row via Properties > BackgroundColor expression of your detail row: =iif(RowNumber(Nothing) Mod 2, "White", "Gainsboro")

Labels:

Bio
The power of a network increases at a rate in proportion to the square of the number of users on that network.Metcalfe's Law
I'm a legally Ordained Minister in the US with ULC. Donate love offerings to my Ministry here: tithe.
Archives
200601
200607
200608
200610
200611
200705
200706
200707
200708
200709
200711
200712
200802
200803
200805