Reference to total values

Top  Previous  Next

In order to refer to a total value, use its name:
 

[TotalSales]

 

FastReport converts reference to totals into the following form:

 

Report.GetTotalValue("TotalSales")

 

As you can see, the data type is not used here. It is so, because the total value is of FastReport.Variant type. It can be used directly in any expressions because it is automatically converted to any type. For example:

 

[TotalSales] * 0.2f