Using Dbase (BDE) files after save returns Greek...

General TRichView support forum. Please post your questions here
Post Reply
tnasca
Posts: 4
Joined: Wed Feb 05, 2014 11:08 pm
Location: USA, MD
Contact:

Using Dbase (BDE) files after save returns Greek...

Post by tnasca »

I am using dbase file (Level 5) with Memo fields and tdbrichvewedit control. When I first being up the new Memo field, and start a typing everything is fine, formatting works, etc.

When I save the record using the tdbnavigator check box, the system returns Greek to the screen.

-8 1 3
-7 0 -1 0 0 0 0 536870911
-9 2 0 0 2 0 1
rvs........

What do I need to change so that is stays format as RTF?

Thanks
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

By default, TDBRichViewEdit stores document in RVF format.
It requires a field that is able to store arbitrary binary data. So it cannot be stored in a memo field (because memo requires a plain text).

You can change saving format to RTF by assigning
DBRichViewEdit1.FieldFormat = rvdbRTF
Also, assign
DBRichViewEdit1.AutoDeleteUnusedStyles = True
(it is especially important if data are saved as RTF)

RTF is encoded using a plain text keywords, so it can be stored in a memo field; but not all TDBRichViewEdit features can be stored in RTF
Post Reply