In my report, I would like a calculation to be done.
Example:
Code: Select all
Code | Numbers | First number
A |10 |1
B |4 |11
C |3 |15
D |7 |18
So I defined a variable. In the BeforePrint event of the report, I initialize my variable to 1:
Code: Select all
Variable = 1;
Code: Select all
Variable = Variable +int.Parse(source.number.ToString());
How can I avoid that? Where else could I initialize my variable?
Hope this is understandable.
Thanks!