Name 'Sum' is not declared". Sum function works in V2 not in V3

Stimulsoft Reports.NET discussion
Post Reply
Swaminathan Balasubramanian
Posts: 3
Joined: Thu Jan 31, 2008 6:34 pm
Location: Little Rock, AR, USA

Name 'Sum' is not declared". Sum function works in V2 not in V3

Post by Swaminathan Balasubramanian »

I was using Sum function in my reports
In Version: 2007.2 from 4 September 2007 everything works fine
Public Function Text33_GetValue_End(ByVal component As Stimulsoft.Report.Components.StiComponent) As System.String
Return Me.Text33.TextFormat.Format(IIF(CType(StiReport.ChangeType(Me.Text33_Sum1.GetValue, GetType(System.Decimal), true),Decimal)>0,CType(StiReport.ChangeType(Me.Text33_Sum2.GetValue, GetType(System.Decimal), true),Decimal),"-"))
End Function


But when I open the same report In Version 2007.3.100 from 11 Devember 2007 it gives me error

"C:\DOCUNE~1\tEMP\PCQHGPG9.0.VB(376.0) : error BC30451 : Name 'Sum' is not declared"

Public Function Text33_GetValue_End(ByVal sender As Stimulsoft.Report.Components.StiComponent) As System.String
Return Me.Text33.TextFormat.Format(CheckExcelValue(sender, IIF(Sum(BG_PSSUNPOS_SELECT_RPT.Agency_Position_Count1)>0,CType(StiReport.ChangeType(Me.Text33_Sum2.GetValue, GetType(System.Decimal), true),Decimal),"-")))
End Function


Please help
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Name 'Sum' is not declared". Sum function works in V2 not in V3

Post by Edward »

Thank you for the bug report.

Could you please send a report template (mrt file which can be saved from Designer) to support[at]stimulsoft.com for analysis.

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Name 'Sum' is not declared". Sum function works in V2 not in V3

Post by Edward »

Thank you for the sample and detailed explanation of the issue.

The problem is fixed. Patch will be available in Thursday, February, 14th.

Thank you.
Post Reply