Board index » delphi » DBRichEdit Load From File

DBRichEdit Load From File

Hi to all!

May be I found a bug in DBRichEdit?
When I set PlainText property to False and run LoadFromFile(FileName.rtf)
method a rich text appears with special characters.  In RichEdit (unlike
DBRichEdit) text appears in normal view, but I need to use DBRichEdit. What
to do?

Please, answer to me. Beforehand thanks.

Paul Efanov.

 

Re:DBRichEdit Load From File


Quote
> May be I found a bug in DBRichEdit?
> When I set PlainText property to False and run LoadFromFile(FileName.rtf)
> method a rich text appears with special characters.  In RichEdit (unlike
> DBRichEdit) text appears in normal view, but I need to use DBRichEdit. What
> to do?

Paul,

TDBRichedit ignores the plaintext property (i'm sure there is a good reason
for it). But the workaround is easy: load the file into the *field* to which
the control is connected, not into the control. This is the general way to
get data into data-aware controls: modify the fields, not the controls. They
get updated automatically.

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!

Other Threads