Topic: OnBeforePrint Event

Hi,
Is it possible when using a OnBeforePrint event  to trim the existing data before printing. For example say the data was "This is a test" and I only wanted to use "test" in the printed report. Can it be done and if so what is the code to do it. Thanks for any advice offered.

Re: OnBeforePrint Event

Hello.


You should use an event OnAfterData, example:


procedure Memo1OnAfterData(Sender: TfrxComponent);
begin
  // just replace text 'This is a ' with empty.
  Memo1.Text := ReplaceStr(Memo1.Text, 'This is a ', '');      
end;
Dmitry.