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

How do I change the font of a DBRichText

edited November 2006 in RAP

Hello

I would like to change the font for a DBRichText field but cannot
figure out how to do it using RAP. I need to do something like this in
the OnPrint event within the dade :

dbrichtext2.SelectAll;
dbrichtext2.SelAttributes.assign(Default_Font);


Thanks

Stuart

--

Comments

  • edited November 2006
    Hi Stuart,

    In order to use the Assign method of the TTextAttributes object in RAP, you
    will need to create a pass thru function to Delphi. Examples of creating
    pass thru functions can be found in the ReportBuilder Developer's Guide and
    in the RAP demo located in the \RBuilder\Demos\0. RAP\... directory.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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