Please attach project or screen shot for help
Or Download Example Report Scipt
Example Report Script
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
IF Copy(<Report."id">,Length(<Report."id">),1) = '1'
Then Memo6.Font.Color := clred
Else If Copy(<Report."id">,Length(<Report."id">),1) = '2'
Then Memo6.Font.Color := clgreen
Else If Copy(<Report."id">,Length(<Report."id">),1) = '3'
Then Memo6.Font.Color := clgray
Else If Copy(<Report."id">,Length(<Report."id">),1) = '4'
Then Memo6.Font.Color := clblue
Else If Copy(<Report."id">,Length(<Report."id">),1) = '5'
Then Memo6.Font.Color := clyellow
Else If Copy(<Report."id">,Length(<Report."id">),1) = '6'
Then Memo6.Font.Color := clmaroon
Else If Copy(<Report."id">,Length(<Report."id">),1) = '7'
Then Memo6.Font.Color := clnavy
Else If Copy(<Report."id">,Length(<Report."id">),1) = '8'
Then Memo6.Font.Color := clolive
Else If Copy(<Report."id">,Length(<Report."id">),1) = '9'
Then Memo6.Font.Color := cllime
Else Memo6.Font.Color := clblack ;
end;
begin
Post's attachments TreeView.zip 503.71 kb, 431 downloads since 2018-09-24
My Visual Database : I Love You
Easy For Beginner Student For Me