Printing a memo with two styles
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.
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.
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
thanks Nico!
A.