At 05:45 PM 10/14/2007, Alan Colburn wrote:
>Suppose you've got a dataset field storing rich text. Presumably
>this would be a BLOB-type field, right?
>
>I'd like to create a method that would let me extract the info from
>a record, including the above field, as a string. (I want to insert
>the record's info into a plain text e-mail message.) Any idea how to
>do this? If you just use the field;s .AsString property you end up
>with text containing the "hidden" RTF codes.
Put a tRichEdit on your form and use it to convert from RTF to plain
text. The general idea is:
RichEdit1.lines.LoadFromStream (blobstream);
plain := RichEdit1.text;
>As always, thanks -- Al
>_________________________________________________________________
>Climb to the top of the charts! Play Star Shuffle: the word
>scramble challenge with star power.
>http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
>_______________________________________________
>Delphi-DB mailing list
>[email protected]
>http://www.elists.org/mailman/listinfo/delphi-db
Regards,
Sid Gudes
PIA Systems Corporation
[EMAIL PROTECTED]
_______________________________________________
Delphi-DB mailing list
[email protected]
http://www.elists.org/mailman/listinfo/delphi-db