Search Results for

    Show / Hide Table of Contents

    Reference to total values

    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
    
    Back to top © 1998-2026 Copyright Fast Reports Inc.