changing a memo text at runtime
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?
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
Thank you for your help. The problem was solved. I used Report's OnGetValue event for assigning value to variable.