Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Help with TppRichText needed

edited July 2003 in General
Hi,

In stead of using the Rich text Editor manually, how do I programmatically
insert fields into a TppRichText component ?

E.g. Something like this:

if IBDataSet.FieldValues['Comments'] <> '' then
ppRichText1.RichText := ppRichText1.RichText + ' ; ' + '';


Regards,

Nols Smit

Comments

  • edited July 2003
    Hi Nols,

    The TppRichText component works the same way as the built-in Delphi
    TRichEdit wrapper component. At run-time you can programmatically edit and
    manipulate the formatted text by using the Paragraph, SelAttributes,
    SelStart, SelLength, and SelText properties and the ClearSelection,
    FindText, and SelectAll methods. These are the same properties and methods
    associated with Delphi's TRichEdit control. See the Delphi help on
    TRichEdit for more information. Also check out Demo 29 (dm0029.pas) in the
    RBuilder/Demos/Reports/... directory.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.