Pages

Men

rh

12/05/2012

How can you access the Code in You report. Describe the Static and intance based method with example in SSRS


Static methods within a custom assembly are available globally within the report. You can access static methods in expressions by namespace, class, and method name
The following example calls the method ToGBP, which converts the StandardCost field value from dollar to pounds sterling:
=CurrencyConversion.DollarCurrencyConversion.ToGBP(Fields!StandardCost.Value)

Instance-based methods are available through a globally defined Code member. You access these by referring to the Code member, and then the instance and method name. The following example calls the instance method ToEUR which converts the StandardCost field value from dollar to euro:
 =Code.m_myDollarCoversion.ToEUR(Fields!StandardCost.Value)