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
Using Dbase (BDE) files after save returns Greek...
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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
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