Developing Matt

My Technical Journal

ReportItems!

leave a comment »

I discovered it unintentionally one day, but if you need to refer to another cell in a ssrs report you can simply use

reportitems!textboxname.Value

Today I used it when referring to a cell that was counting groups, setting the visibility based upon how many groups existed.  You have to, of course, keep in mind your grouping sets.  (you can only access a cell that is higher than the one you are on).

What’s crazy about ssrs.  The case sensitivity will bite you every time.  The class (‘reportitems’) is not case sensitive, but the textbox is..and the property (‘value’) isn’t.  So watch for that.

Others:

Globals.PageNumber

Globals.ExecutionTime (The date and time that the report began to run. )

Globals.ReportName

Globals.TotalPages

User.UserId

Advertisements

Written by matt

October 31, 2008 at 3:26 pm

Posted in Report Services

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: