Hi
Hi
Any One Can Tell me below Code in Which Event i should keep in Quick Report
if QRExpr1.Caption = 'PRESENT' then
begin
QRExpr1.Font.Color:= clBlue;
end
Else
Begin
QRExpr1.Font.Color:= clRed;
End;
Expression is : IF(QAttandance.AttStatus=1,'PRESENT','ABSENT')
i am Using Delphi XE 8 and Quick Report 5
it Shows all in Red Color. I kept this event of Form Create
Any One Can Tell me below Code in Which Event i should keep in Quick Report
if QRExpr1.Caption = 'PRESENT' then
begin
QRExpr1.Font.Color:= clBlue;
end
Else
Begin
QRExpr1.Font.Color:= clRed;
End;
Expression is : IF(QAttandance.AttStatus=1,'PRESENT','ABSENT')
i am Using Delphi XE 8 and Quick Report 5
it Shows all in Red Color. I kept this event of Form Create
You'd put it in the onprint or onBeforePrint function, that way it gets reset each time the detail value changes.
ReplyDelete