[Help] frxReport1.ShowReport doesn't change memo text

edited 12:01AM in FastReport VCL 5
hello.. really need help here..


i have a code to string replace Memo1

Memo1 := frxReport1.FindObject('Memo1') as TfrxMemoView;
Memo1.Text := StringReplace(Memo1.Text, '%address%', edit1.Text, [rfReplaceAll]);
frxReport1.ShowReport(true);

if i click button for the 1st time this code work perfectly.
but after i close print preview, and then change my edit1.text with another text then i click the button again
memo1.text doesn't change its still showed previous report view...

any advice would be appreciate..

thank you.

Comments

  • edited 12:01AM
    I have just found that in the script

    Memo1.Text := whatever;

    does not work no matter whether whatever is a variable or a literal string.

  • edited March 2015
    technisoft wrote: »
    I have just found that in the script

    Memo1.Text := whatever;

    does not work no matter whether whatever is a variable or a literal string.

    OK, one has to remove any refernce in the field. IOW, the field has to be blank if one wants to assign something in code.

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.