TRVDocumentProperty.FieldFormat

<< Click to display table of contents >>

TRVDocumentProperty.FieldFormat

Format for saving data in the database field (linked using LiveBindings)

property FieldFormat: TRVDBFieldFormat;

This property controls loading from TBlobField linked to this TRichViewEdit using LiveBindings (Delphi XE2+). This property is used only in TRichViewEdit (because TRichView does not save data to a database field).

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

Markdown and a plain text are saved using the specified CodePage (unless saving to WideMemo fields; in these fields, text and Markdown are always saved in UTF-16 encoding).

Note: It is not guaranteed that document saved in RTF, DocX, HTML and text will be the same after reloading (some item types, text and paragraph attributes cannot be saved in RTF, DocX, HTML or plain text). To store all attributes of text and objects, use RVF format.

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

Default value:

rvdbRVF

 

See also

TDBRichViewEdit.FieldFormat

TRichViewEdit.OnSaveCustomFormat