Yes, use the DetailBand.BeforePrint event to set the visibilty of the detail band. It works in tests here. I used RAP, but here is the code. Basically, I create a table dump of the DBDemos Biolife table in a simple report that only had a DBText in the detail band. Biolife is the name of my pipeline:
if (Biolife['Common_Name'] = 'Firefish') then begin
Comments
band. It works in tests here. I used RAP, but here is the code. Basically, I
create a table dump of the DBDemos Biolife table in a simple report that
only had a DBText in the detail band. Biolife is the name of my pipeline:
if (Biolife['Common_Name'] = 'Firefish') then
begin
Detail.Visible := False;
DBText1.Font.Color := clRed;
end
else
begin
Detail.Visible := True;
DBText1.Font.Color := clBlue;
end;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com