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

Subreport and page summary

edited February 2003 in Subreports
Hi there

i need to build a report (Invoice-Type) with separeted details for
work-positions and material-positions.
i created a report with two subreports, one for the work-positions, one for
the material.
everything works fine - as i found on this group i used a pseudo-group in
each subreport to
display the header on every page (reprint group header on subsequent pages).
now, as soon as a subreport has to many positions to fit on one page i need
to
print a running summary (page total) at the bottom of the page. counting
positions
doesn't help because the subreports dont start at a fixed position (depends
on the
previous section who has some auto-sizing memos in it).
What i am thinking about is to calculate the space left on page and,
depending on
this value, to force the printing of the group-footer but i really cant
figure out
how to do this...

anybody did something like this or knows another way to print page totals
in subreports ?

Comments

  • edited February 2003
    Sounds as if you really need a section style subreport instead of a child
    type (see the Subreport.PrintBehavior property), since you want a header and
    footer on each page of the subreport. If you want to show a page total, then
    use a TppVariable in the subreport footer to calculate a running total and
    use its Timing dialog to reset when a page starts.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.