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

Registrations Number printed in a Detail ?

edited October 2001 in General
Hi,

Does a method that the number of Details comes back exist printed?.

And after that, as I can print " XXXXXXXX " for the number of registrations
that lacked?

For instance, to print 5 details, I would like to print 5 lines of " X "!.

Thank you.
Anderson - AHR

Comments

  • edited October 2001
    There isn't a method such as this. You've probably found that
    Report.Bandcount will only give you how many band definitions exist for this
    report, not how many times a band generates.

    The easiest way to get the detail band count is to check your dataset's
    record count property, as this should be how many detail bands which print
    (if you count an overflowing detail band on two pages as one detail band).
    There is a 1:1 relationship between records and detail bands which print.

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited October 2001
    Jim Bennett,

    Another method that I thought is to increase a variable in OnPrint of a DB
    of the Band!. Ok!.

    But, where I am with more difficulty it is of implementing something of the
    type:

    00001 television R$ 100,00
    00002 sound R$ 200,00
    .....

    00005 radio R$ 100,00
    XXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXX

    And it is at the most 10 lines!

    Another thing, I didn't get to understand right: AfterGenerate. I imagined
    that this event was called after printing the whole band!

    Thank you,
    Anderson - AHR

  • edited October 2001
    Forget! . Like me I use a TClientDataSet, it was just enough I to include
    the registrations with " X " in the difference among RecordCount-10! .

    Thank's !
    AHR.

This discussion has been closed.