Substring Formula

Stimulsoft Reports.WEB discussion
Post Reply
Abbas
Posts: 27
Joined: Tue Oct 13, 2015 2:10 pm

Substring Formula

Post by Abbas »

Hello...
I use this function but Something is wrong....stimulsoft says "Sum is not in current context"....

Code: Select all

{Substring("000000000"+((Sum(GetShowReport.قراردادي)-Sum(IIF(GetShowReport.FoodName =="ورودي مهمان",GetShowReport.قراردادي, 0)) )-
(Sum(GetShowReport.يارانه_اي)-Sum(IIF(GetShowReport.FoodName =="ورودي مهمان",GetShowReport.يارانه_اي, 0)) )).ToString(),(int.Parse(Length((Sum(GetShowReport.قراردادي)-Sum(IIF(GetShowReport.FoodName =="ورودي مهمان",GetShowReport.قراردادي, 0)) )-
(Sum(GetShowReport.يارانه_اي)-Sum(IIF(GetShowReport.FoodName =="ورودي مهمان",GetShowReport.يارانه_اي, 0))) ).ToString())),9)}
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Substring Formula

Post by Alex K. »

Hello,

Please try to use the Totals.Sum() function in this case.

Thank you.
Abbas
Posts: 27
Joined: Tue Oct 13, 2015 2:10 pm

Re: Substring Formula

Post by Abbas »

Hello
I used it but didnt work.....
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Substring Formula

Post by Andrew »

Hello,

Please send us a report template with this formula to support@stimulsoft.com. Please refer to this email in the message.

Thank you.
Post Reply