Quantcast
Viewing all articles
Browse latest Browse all 73760

SSRS 2008 R2: Cannot use custom code

Hi everyone,

I have an AX2012 SSRS report project. I write the following VB example code in my Custom Code (Report Properties). Then I create a textbox in the report header to use this function and the expression I use there is "=Code.AddValue(1)" for example. But when I compile the project, the call to this method is always giving error (like the method doesn't exist). I need some help with that please, because I need to use Custom Code to control some variables and I don't find any other way (my final goal is to have the pageNumber for every instance of a group, and every new instance means a new page break).

Thank you very much

Marc

Dim values As System.Collections.ArrayList

Function AddValue(ByVal newValue As Decimal)

 If (values Is Nothing) Then

  values = New System.Collections.ArrayList()

 End If

  values.Add(newValue)

End Function


Viewing all articles
Browse latest Browse all 73760

Trending Articles