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.
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;
Comments
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;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com