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

how to set the no. of item printed in detail band using detilband.height

edited July 2006 in General
My report structure is as follow:
headerBand1 (phstatic)
group header band 0 (phstatic)
group header band 1 (phstatic)
detail - a subreport
in the subreport, the structure is
groupheaderband3 (phstatic)
detailband2 (phstatic)
groupfooterband3 (phstatic)
then return to main report
...
I want to print 6 items in subreport detail band, so I use the following
calculation:
detailband2.height := (report.height - marginTop - marginBottom -
headerBand1.height - groupHeaderBand0.height - groupHeaderBand1.height -
groupHeaderBand3.height - groupFooterBand3.height) / 6;
but when I print the report, only 5 items can print on one page! the six
item is printed on the second page, why?

how should I calculate the detailband2.height so that it can print exactly 6
items?

Comments

  • edited July 2006

    Try setting DetailBand.PrintCount to 6 for the subreport detailband.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.