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

Group with KeepTogether

edited April 2003 in General
Hello
we got a problem with the property KeepTogether of the groups :
we need to know if the current record has been "printed then erased then
reprinted on next page",

I mean something like :
if (MyDetailBand.IsReprinting) then ...


Versions : Delphi 7 Architect / RB 7.02 Entreprise / Oracle / DBExpress

Comments

  • edited April 2003
    Your best approach to this would probably be to create a TStringList to hold
    all the unique records in the detail band. Use the
    DetailBand.BeforeGenerate event. Once a record prints, check to see if it
    is already in the list. If it isn't, add the record to the list and move
    on. When you find a record that exists in the TStringList, you will know
    you have already printed that record and are trying to re-print it on the
    next page.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.