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

Prining a detail band more than one times manually

edited May 2005 in General
I need to print a detail band more then one times. How often dependes on a
value from the database. The problem is that I do not have
for exsample 4 records, I just have one record with the value 4.
How can I do that?

Best regards
Sven Langenkamp

CT Datentechnik GmbH
Eschenstr. 2
D-31582 Nienburg/Weser
Germany

Telefon: +49 [0] 5021 - 9724-15
Telefax: +49 [0] 5021 - 9724-18
http: www.ctdatentechnik.de
e-mail: langenkamp@ctdatentechnik.de

Comments

  • edited May 2005
    Hi,

    You will need to toggle the DetailBand.BandsPerRecord property on the fly as
    your data is traversed. To start off, try setting this value in the
    DetailBand.BeforePrint or BeforeGenerate event.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2005
    It workes, but still one problem. The detail includes a subreport. The
    subreport is not printet n times. If I try it with a detail without
    subreport (textfields, lines ...) it workes great.

  • edited May 2005
    In my testing the subreport printed fine when setting the
    DetailBand.BandsPerRecord to a higher number than 1. Do you want to print n
    subreports per band? If so, you will need to dynamically create more
    subreport objects and copy the first template into each of them before the
    main detail band prints.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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