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

Multiple Record Copies needed.

edited September 2004 in General
I am trying to create a label report bases on data that has already been
generated by another program.
An Example for the data is as follows :-

Item Qty

A 1
B 1
C 3
D 1


I need to print a label for each item, eg item A will have 1 label printed,
but item C will have 3 Labels printed.

How can I do this ?

Is there any way I can count and tell the pipeline to go to the previous
record ?


I have been trying for a while now but I'm getting rather naffed off!

Many Thanks

Paul.


P.S I'm using Report Builder Enterprise V5.5 as a DLL bundled with an
application (Hence some bits don't work like they do in the delphi version)

Comments

  • edited September 2004
    Hi Paul,

    Inside the DetailBand.BeforePrint, try setting the BandsPerRecord property
    to the value of the Qty field. Something like the following...

    procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
    begin
    ppReport1.DetailBand.BandsPerRecord := ppReport1.DataPipeline['Qty'];

    end;

    Be sure you set the Report.CachePages property to True if navigating back
    through the report changes the original output.

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