Home End User

Extracting text from Richtext fields

edited April 2021 in End User
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.

Comments

  • Hi Dirk,

    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.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.