HotXLS Docs

SummaryRow property

Controls whether the exporter appends a totals row after the last detail record. Read/write Boolean; the default is False

Remarks

When True, the export writes one totals row directly beneath the last detail record. Each summed column receives a real SUM formula spanning the exported detail rows; the summed cells are bold and, when HeaderColor is set, they take the header colour as their fill. By default every exported numeric field is summed; assign field names to SummaryFields to choose the columns. The totals row is omitted when a RowsPerSheet split has moved the run to another worksheet, because an A1 SUM range cannot span worksheets, and when the current export is a nested detail level rather than the top level. When SUM formulas are not wanted, leave SummaryRow False and write the totals through the AfterRows event instead

Syntax

property SummaryRow: Boolean;

Example

This example adds a totals row to each exported worksheet holding a complete detail run

DataToXLS1.SummaryRow := True;