changing a memo text at runtime

edited 12:21AM in FastReport 3.0
Hi all,
I use FR3. I create a report ant put a Memo into it. I must to set the memo text at runtime with a string value. I create a varible and set memo proprty of MemoView component to [MyVar] or [<MyVar>]. (I test both). Then in delphi code, in OnBeforPrint event of FR, I set the varible value to string I want:

MyReport.Variables:=MyStringVar or MyStringConst;

but when run application and show report, what is showen in Memo is a diffrent thing. It seems that instead of string value, the converted integer value of MyStringVar is represented. (when the value of MyStringVar is a alphabet string such as 'asasdds', an error occure on showing report.)

How can I do this?

Comments

  • edited 12:21AM
    Please read the programmer manual, about passing string variables.
  • edited July 2005
    Hi Alex,
    Thank you for your help. The problem was solved. I used Report's OnGetValue event for assigning value to variable.

Leave a Comment