In FastReport .NET, to calculate the sum for a field within a DataBand (instead of reading a formatted string from a TextObject), you use the Totals feature:
Open the Data -> Actions -> New Total... window (or create a Total programmatically).
Set: Name = TotalAmount, Function = Sum, DataColumn or expression = [YourTable.Amount], Evaluate on the band = Data1, Print on the band = ReportSummary (or GroupFooter / DataFooter).
Drag the created TotalAmount to the TextObject in the footer ([TotalAmount]), and set the desired number format for it via Format... -> Number.
Comments
Hello!
In FastReport .NET, to calculate the sum for a field within a DataBand (instead of reading a formatted string from a TextObject), you use the Totals feature:
Open the Data -> Actions -> New Total... window (or create a Total programmatically).
Set: Name = TotalAmount, Function = Sum, DataColumn or expression = [YourTable.Amount], Evaluate on the band = Data1, Print on the band = ReportSummary (or GroupFooter / DataFooter).
Drag the created TotalAmount to the TextObject in the footer ([TotalAmount]), and set the desired number format for it via Format... -> Number.
Alternatively, you can use the report script: https://www.fast-report.com/public_download/docs/FRNet/online/en/UserManual/en-US/Script/ScriptExamples/ScriptExampleCalcTotals.html