Substract values

Stimulsoft Reports.NET discussion
Post Reply
sharok
Posts: 6
Joined: Thu Jan 30, 2014 11:30 am

Substract values

Post by sharok »

Hello. I can sum the values ​​in a column by the function Sum. But how to subtract?
Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Substract values

Post by Alex K. »

Hello,

As a way, you can use the additional variable and code in AfterPrint event:
resultVariabe -= DataSourceName.ColumnName

Thank you.
sharok
Posts: 6
Joined: Thu Jan 30, 2014 11:30 am

Re: Substract values

Post by sharok »

I have 11 columns and I have to add 11 variables. May be there is other way?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Substract values

Post by Alex K. »

Hello,

Yes, in this case you need add 11 variables.

Thank you.
Post Reply