FR4 frxReportBeforePrint HighLighting, Manual highlighting of a certain condition

edited 10:55AM in FastReport 4.0
Hello!

I attempted to highlight values.

But result is shifted for one row.

I use FR4 embedded in Delphi XE4.
procedure TrepRankTTest.frxRankTTestBeforePrint(Sender: TfrxReportComponent);
begin
 if sender.Name = 'dsPairedTTestGIBB' then
 begin
 if TFrxMemoView(sender).value) = 'HS' then
 TFrxMemoView(sender).Font.Color := clred
 else if TFrxMemoView(sender).value) = 'PS' then
 TFrxMemoView(sender).Font.Color := clblue
 else if TFrxMemoView(sender).value) = 'NS' then
 TFrxMemoView(sender).Font.Color := clblack
 else
 TFrxMemoView(sender).Font.Color := clblack;
 end;
end;

This only result in the following row being red or blue.

I tried the frxReport.Calc(TfrxMemoView(Sender).Text)) it also doesn't work.

I must add that the frxMemoView shows the value of a frxdbDataset.

Please help. It is driving me crazy!!

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.