Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Print summary on each page?

edited March 2003 in General
Hello,

I have a report with one subreport inside. (Invoice wiht positions)
If the subreport doesnt't fit on one page, there should't be created a
summary on the end of each page with the sum of the values with are printed
on this page.

How I can do this?

I can't group the records in the subreport, because they are all different
positions of the invoice. So I can't make a group footer.
Also a summary band is wrong, because it's only printed on the last page.

So what can I do?

regards,
Markus

Comments

  • edited March 2003
    This isn't natively supported. Are you using the page footer band in this
    report? You could use section style subreports and use their page footers to
    show the running summary information on each page.

    One way to show the information on each page in an alternate fashion, is to
    generate the summary information as the detail band generates. Then in the
    Report.OnEndPage event, create some more output draw commands (TppDrawText)
    underneath the last detail band on each page.

    Here is an example which aligns the summary band to the bottom of the page.
    You could use a similar techniques to align some draw commands from teh
    footer band to appear below the last detail band.
    http://www.digital-metaphors.com/tips/AlignSummaryToBottom.zip

    Here is a demo which draws lines using draw commands underneath the last
    detail down to the footer band.
    http://www.digital-metaphors.com/tips/DrawLineOnEachSide.zip


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.