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

Mark printed records in datasets

edited April 2004 in General
Hi there,

I want to mark the records in the datasets that have been printed by a
report (boolean "printed"-field or something like that)...and have
absolutely no idea of how I can do this.

Can you give me some hints ?

Regards

Heiko Knuettel

Comments

  • edited April 2004
    Hi Heiko,

    As ReportBuilder generates a page it moves sequentially through each record
    for each detail band so you can use the DetailBand.BeforePrint event to
    update the current record of the dataset you are using. Something like the
    following.

    procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
    begin
    Table1.Edit;
    Table1['Printed'] := True;
    end;

    --
    Best Regards,

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