Reputation: 440
I'm trying to create a crosstab in Crystal Reports, integrated with the Visual Studio environment. The problem is that I need to use the total value of the crosstab (here I mean the Line Total) to do some other calculations in the report.
I know a bit of Crystal Reports, but never did something similar. Searches on google resulted in nonsense answers or overly complicated solutions to solve the problem, or solutions that were not exactly my problem.
Is there a relatively simple way to do this? I just need to get the total value of the crosstab and put in a variable, that's all.
Thanks in advance.
Upvotes: 1
Views: 2410
Reputation: 26272
Honestly, I didn't think this was possible, but I found a way:
:
// change to desired type
Shared Currencyvar amount := CurrentFieldValue;
// change formatting to match desired value
ToText(amount)
{@amount}
; enter the following text::
// change data type to match
Shared Currencyvar amount;
{@amount}
; enter the following text::
// change data type to match
Shared Currencyvar amount;
The final result will resemble:
Upvotes: 1