Help - Search - Members - Calendar
Full Version: frxRichView problems!!!
Fast Reports forum > Fast Reports Products > FastReport 4.0
id160486
I have a problem and I don't understand why?

For frxMemoView this code works with no problems:

TfrxMemoView *Memo;
Memo = new TfrxMemoView(Page);
Memo->CreateUniqueName();
Memo->Lines->Add("nfbjkdsfnvbklsfmnbvlsfdngvlksd");
Memo->Lines->Add("nfbjkdsfnvbklsfmnbvlsfdngvlksd");
Memo->Font->Size = 14 ;
Memo->Top=5;
Memo->Left=5;
Memo->Height=20;
Memo->Width=80;

For frxRichView the fallowing code doesn't work:

TfrxRichView *staticEdit;
staticEdit =new TfrxRichView(Page);
staticEdit->CreateUniqueName();
staticEdit->RichEdit->Lines->Clear();
staticEdit->RichEdit->Lines->Add("nfbjkdsfnvbklsfmnbvlsfdngvlksd");
staticEdit->RichEdit->Lines->Add("nfbjkdsfnvbklsfmnbvlsfdngvlksd");
staticEdit->RichEdit->Font->Size = 14 ;
staticEdit->RichEdit->Top=5;
staticEdit->RichEdit->Left=5;
staticEdit->RichEdit->Height=20;
staticEdit->RichEdit->Width=60;

From my understanding both of them(frxRichView & frxMemoView) work similar.
So I don't understand why one of them shows the lines in print preview and the other doesn't.
Any ideas? Thanks.

gordk
you cannot set fint size and you must add rtf text
id160486
QUOTE(gordk @ Dec 5 2011, 06:03 AM) *
you cannot set fint size and you must add rtf text


You can set the font, the solution is to add:

staticEdit->Align=baClient; and it works.

The problem is that it works only with this alignment and after that you can't modify top,left.
Do you know why?
Thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.