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

Skipping labels and copies

edited February 2006 in General
I have been using the example:
http://www.digital-metaphors.com/tips/SkipLabelsRap.zip

This works great as long as I only want one label. Can anyone tell me
the best way to do this if I want "N" number of labels.

Thanks,
Nick

Comments

  • edited February 2006
    Hi Nick,

    Try adjusting the DetailBand.BandsPerRecord. This should create this many
    copies of each label displayed.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2006
    I tried doing that, but I think I've just been looking at this too
    long...going brain dead. Below is the code I'm using.
    I have replaced Report.DetailBand.BandsPerRecord := 1 with
    Report.DetailBand.BandsPerRecord := nCopy. nCopy being the number of
    copies I am passing in through RAP.

    if ((((Report.CurrentColumn - 1) * FTotalBandsPerColumn) +
    Report.DetailBand.Count) = (nSkip - 1)) then
    begin
    Report.DetailBand.BandsPerRecord := nCopy;
    Region1.Visible := True;
    end;

    Thanks,
    Nick

  • edited February 2006
    Hi Nick,

    Try setting the BandsPerRecord inside the BeforeGenerate event rather than
    the BeforePrint event. I believe the BeforePrint event fires too late to
    change the BandsPerRecord property.

    --
    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.