TDBRichViewEdit.FieldFormat

<< Click to display table of contents >>

TDBRichViewEdit.FieldFormat

Format for saving data in the database field

property FieldFormat: TRVDBFieldFormat;

 

type

  TRVDBFieldFormat = (rvdbRVF, rvdbRTF, rvdbDocX, rvdbText);

(introduced in version 1.6, changed in version 19)

This property allows changing the field saving format to RVF (RichView Format), RTF, DocX or plain text.

Note: It is not guaranteed that document saved in RTF, DocX and text will be the same after reloading (some item types, text and paragraph attributes cannot be saved in RTF, DocX or plain text).

You can save data in your own format using OnSaveCustomFormat event.

Starting from Delphi 2006, Unicode memo fields (Field.DataType=ftWideMemo) are supported specially. For these fields, if FieldFormat is rvdbRVF, rvdbDocX or rvdbRTF, documents are stored as Unicode RTF (RTF code converted from String to WideString). If FieldFormat is rvdbText, documents are stored as Unicode text.

Default value:

rvdbRVF