Memo text is cleared when prepareReport is called

edited 11:15AM in FastReport 4.0
I've added text to a report in the following manner in the onclickobject event handler for the TfrxReport object:
	WideString objNameStr = "MemoText2";
	memoView = dynamic_cast<TfrxMemoView*>(reportStandardReport->Engine->PreviewPages->Page[0]->FindObject(objNameStr));
	if(memoView){
		memoView->Text = "memo2";
		memoView->Color = TColor(clYellow);
	}

I see the changes on the preview and all is well. I'm just wondering why the text and color of the memoviews disappear when I add another page via incrementing the row count property of the master data band they are located on and then call prepareReport() afterwards.

Why is my data cleared and how can I work around this?

Thanks

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.