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

Printing a memo with two styles

edited July 2014 in General
Is there a way to print the content of a memo with two different styles?

for instance:

-- memo text start --
john smith <-- has to be printed font size 14 + bold
(my best custome) <-- has to be printed font size 12 + italic
-- memo text end

via RAP? via code?

or is there no way and i've to use two memos one shifted relatively to
the other?

Thanks!
A.

Comments

  • edited July 2014
    Hi Alessandra,

    One option is to use a TppRichText component rather than a TppMemo.
    Using the various RichText properties and routines, you can easily
    manipulate sections of text within a single control. See the SelText,
    SelLength, SelStart, SelAttributes, and Paragraph properties of the
    TppCustomRichText help topic for more information. See the following
    article on assigning font attributes in code.

    http://www.digital-metaphors.com/rbWiki/RCL/RichText/Assigning_Attributes

    If you would like to stay with memos, you will need to use multiple
    memos as you mentioned. Memos can only have a single text format.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2014
    Nico Cizik (Digital Metaphors) wrote:


    thanks Nico!

    A.
This discussion has been closed.