Plain text from blob field with rvf format

General TRichView support forum. Please post your questions here
Post Reply
jota
Posts: 48
Joined: Fri Sep 16, 2011 10:56 am

Plain text from blob field with rvf format

Post by jota »

Hi.

I need present plain text from a blob field, in a dbgrid component (really, an small portion of every blob field).

It´s saved with rvf format.

Can anyone help me

Thank in advance.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You need to load this field in TRichView/TDBRichView component and then save as text.
For loading, you can either link TDBRichView to this field, or use TRichView.LoadRVFFromStream (see Demos\*\DB Demo\2 RichViewEdit)

For saving, you can, for example, use GetAllText from RVGetText unit (or from RVGetTextW unit, if you need Unicode text).
jota
Posts: 48
Joined: Fri Sep 16, 2011 10:56 am

Post by jota »

Hi

I´m downloading xe2 version of trichview, from your web page, but i do not find RVGetText.pas inside. Is there another download link?

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

Post by Sergey Tkachenko »

If you download a trial version, it includes RVGetTextW.dcu.

Help on this unit: http://www.trichview.com/help/idh_rvgettext.html
Post Reply