Global Object Collections

Microsoft Reporting Services provide five global object collections.

You can use them in expressions:

  • Globals
  • user
  • Fields
  • Report Items
  • Parameters

You can access these collections, using standard Visual Basic collection syntax. For example:

Collection!ObjectName
=User!Language

Example:

Collection.Item("ObjectName")
=User.Item("Language")

Example:

Collection("ObjectName")
=User("Language")

Example:

Collection!Fieldname.Value
=Fields!AccountCode.Value

You can also use property syntax to access items in the Globals and User collections, for example:

Collection.ObjectName
=Globals.PageNumber