Modify content of Memo-field via BeforePrintEvent

RutgerRutger The Netherlands
edited 4:19AM in FastReport 3.0
Hi,

I want to modify the content of a Memo-field, this memofield gets a number of seconds from a database and I want to change this in a regular time form instead of seconds.

I did the same trick with a cell in an DBCross object, and there it works fine, but this option doesn't work in a Memofield. Problem is the Object I get passed in my function. In the DBCross OnPrintCell event there is a TfrxMemoView Memo passed by, from which I can change the text via Memo.Text = ...

However, the beforePrint event from the regular memofield only has a parameter TfrxComponent Sender, which doesn't have any property like Text or Value which I can't change.

Does anybody has a solution for this 'simple' problem?

TIA

Comments

  • edited 4:19AM
    TfrxMemoView(Sender).Text := ...
  • RutgerRutger The Netherlands
    edited 4:19AM
    Thanks! That works... I knew that it should be a simple solution ;)

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.