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

changing format dynamically

edited April 2003 in General
hi there,

I'm working in bactriology domain and have to build a dynamic memo with
some sentences and a bacteria description (taken from a thesaurus)

So I have :
1- a comment ( for example : "Dear Mister X, we are glad to notify you
that the sample you sent to us is a ...)
2- a gender (for example "Bordetella")
3- a specie (for example "bronchiseptica")

I'd like to print the following :
Dear Mister X, we are glad to notify you that the sample you sent to us
is a Bordetella bronchiseptica.

at first glance, simple ... but I'd like to have the whole paragraph in
normal font and the specie in Italic.

How can I do that ? I tried to arrange some labels but the result is
pretty eratic ... due to the variation of string length.

best regards,

Etienne

Comments

  • edited April 2003
    Hi Etienne,

    use a RichText component and set the text properties for every paragraph as needed.
    You have to fill it by code accordingly.

    HTH,
    Chris Ueberall;
  • edited April 2003
    [This followup was posted to digital-
    metaphors.public.reportbuilder.general and a copy was sent to the cited
    author.]

    Hi and thanks for your answer,

    What do you mean by "fill it by code" ?
    and how can I fill a specific paragraph inside this rich text ?

    best regards,

    Etienne


    In article <3e9d5806@dm500.>, Ueberall@NOSPAM.osd.de says...
  • edited April 2003
    Etienne,

    please do NOT use my private email address if not explicitely requested, thankyou.

    You are asking how to handle the content of a RichView component?
    Please take your handbook for Delphi and study the chapter about it or risk a look into the help files ('TRichEdit').
    There are several demos in Delphi's Demo folder.

    regards,
    Chris Ueberall;
  • edited April 2003
    Ok ...

    first I apologize for the private mail use.
    second, I consider that you're good old "RTM" answer should be a little
    extensed.

    Actually, I know how to use RichEdits ... but as you may know, RAP is
    hiding some functionnalities and it's sometimes very hard to know how to
    use functions.

    For example : FindText that should use a array for options (in Delphi)
    ... was reshaped to accept 2 parameters.

    So my question remains up to date ... how can I access the selAttributes
    in my richtext from the RAP ?

    Thanks a lot,

    Etienne

    In article <3e9d624a$1@dm500.>, Ueberall@NOSPAM.osd.de says...
  • edited April 2003
    Etienne,

    it is the first time that you mention 'RAP', you are asking here in group 'General'. FYI, there is a special group for questions about 'RAP'.
    If you can't access some properties of a component then there are two ways to solve it. The first one would be to extend the RTTI capabilities by descending the existing component. The second one solves it by creating a 'RAP' pass-through function. I suggest using the latter, which is easier and faster to implement.

    HTH,
    Chris Ueberall;
This discussion has been closed.