HotXLS Docs

SummaryRow property

Specifies 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 under the last detail record. Each summed column receives a real SUM formula over the exported detail rows; the summed cells are bold, and they receive the header color as their fill when HeaderColor is set. 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 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 every exported worksheet that holds a complete detail run

DataToXLS1.SummaryRow := True;