I have a report created with Digital Metaphors ReportBuilder (VCL edition, in Delphi XE3). It's an invoice, with header, detail and footer bands.
When the data fits in one page, all is well. If I have more data, that fills, lets say for the sake of argument, 2 pages, I would requires:
- Footer band only in the last page
- On all other pages, the footer band should be replaced with only the running amount from the detail band, up until that page (from the first one).
- On all but the first, the header should include the running totals of all previous pages.
Something like:
Page 1: - (Header) - Detail - "Value until now: (Sum of one the the fields present in the detail band)"
Page 2: - (Header) - "Value until now: (Sum of one the the fields present in the detail band) of previous pages" - Detail - Footer
I've tried to investigate group totals, using a DBCalc component, but those aren't aware of the page. It only shows the total in the end, and not at the end of the page.
Any pointers of how I could do this? Thank you