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

DbRichText1.SelAttributes

edited March 2004 in General
How can I make this complie Inside the onPrint for my dbRichtext field. What
is the correct syntex for setting the DbRichText1.SelAttributes ?

DbRichText1.SelAttributes.Style:=[fsBold];

Comments

  • edited March 2004
    Hi Mike,

    Unfortunately, the TTextAttributes properties are public so the Delphi RTTI
    will not pick them up for RAP. This leaves two options to get this working.
    First... and easiest would be to create a RAP passthru function that
    assigned the style property of the SelAttributes object. For an example of
    creating a passthru function, see the ReportBuilder Developer's Guide.
    Second would be to create a TTextAttribute RTTI class and register it with
    RAP. If you take a look at most of the classes in ReportBuilder, you will
    see that almost every one has a corresponding RTTI class to enable certain
    public methods and properties in RAP. You will need to something similar to
    this.

    --
    Best Regards,

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