Lines into Rich1

edited 10:12AM in FastReport 3.0
Hi,

I have this code:

void __fastcall TForm1::frxReport1BeforePrint(TfrxReportComponent *Sender)
{
TMemoryStream* lines = new TMemoryStream();
this->RichEdit1->Lines->SaveToStream(lines); // RichEdit is Standart Component
lines->Position = 0;
Rich1->Lines->Add->LoadFromStream(lines); //error: Undefined Symbol 'Rich1'
}

Why it is does not work?

I tried also this:
frxRichObject1 ->Lines-> LoadFromStream(lines);

I tried this:
frxReport1->Page1->Rich1->Lines = Form1->RichEdit1->Lines; //error: Page1 is not from frxReport1

and still problem.



Please help.
Stan

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.