Extracting text from Richtext fields
Hello,
Is there a way to ignore the font-settings in a rich-text database field (BLOB), and just show the text in a report ?
In other word : a conversion richtext -> plain text in the reportlayout.
I would like to print comments users made all in a simular way, for example all in fontcolor red, size 10, bold.
(The original font-settings are still used in an other context.)
Right now, the only solution I can think of is adding an extra field tot the database which stores only the text as a string.
But, since i have many BLOB-fields in my database, a solution ín the layout would be extremly helpfull !
kind regards,
Dirk Janssens.
Is there a way to ignore the font-settings in a rich-text database field (BLOB), and just show the text in a report ?
In other word : a conversion richtext -> plain text in the reportlayout.
I would like to print comments users made all in a simular way, for example all in fontcolor red, size 10, bold.
(The original font-settings are still used in an other context.)
Right now, the only solution I can think of is adding an extra field tot the database which stores only the text as a string.
But, since i have many BLOB-fields in my database, a solution ín the layout would be extremly helpfull !
kind regards,
Dirk Janssens.
Comments
You can use the RichText.PlainText property to get the unformatted text value of the control. This will return a simple string value of the readable text.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com