I ran into a need for this where a text only tooltip of the first paragraph of an rtf blob needed to show up when the mouse was held over the open/display blob button. I solved it by simply adding a second blob and storing the original rtf memo lines as both native rtf and plaintext. This way my tooltip showed up really fast!
from Robert Meek dba "Tangentals Design" e-mail: [EMAIL PROTECTED] Freelance Windows Programming for XP and Vista Also proud to be a Moderator of the "Delphi-List" at elists.org "Reality cannot be explained...only enjoyed or endured as your current perspective allows!" -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Colburn Sent: Sunday, October 14, 2007 7:45 PM To: delphi-db@elists.org Subject: Extracting Text from RTF-Containing Field 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. 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 Delphi-DB@elists.org http://www.elists.org/mailman/listinfo/delphi-db _______________________________________________ Delphi-DB mailing list Delphi-DB@elists.org http://www.elists.org/mailman/listinfo/delphi-db