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

Memo in Header not bold

edited November 2005 in General
I have a very simple report that uses a memo control to allow a changable
header label. This was necessary to allow the header to adjust down for
longer header labels. The header uses bold for the font, but once the label
is set the memo converts the text to normal instead of bold.

I tried setting the bold:

Memo1.Font.Bold := true;

But no matter where I set it, the memo remains in normal case.

Am I missing something?

Tim Hayes

Comments

  • edited November 2005
    Hi Tim,

    Are you loading templates by chance? If so, you will need to set this
    property inside the OnLoadEnd event. Where have you tried setting this
    value?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2005
    I've tried setting it in the before print section of the memo itself, in the
    header section before print and before generate.

    This is a very simple report that prints a 2 column list. It pulls the
    header values from a table value (though the pipe). I ran into the problem
    when it was discoverd that a new header label was much longer than expected.
    The variable that was originally uses worked fine, and other than the memo
    control not being bold the memo works just like I needed.

    Tim Hayes

  • edited November 2005
    Hi Tim,

    Which version of ReportBuilder are you using? Does this only occur after
    you set the text of the memo in code? If you assign the text to the memo at
    design time and set it to bold, will it show up bold then?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2005
    Hi Tim,

    Make sure you aren't using the Rich Text version of the memo. Rich Text
    uses it's on internal formatting and setting the font of the memo will have
    NO effect on it's contents.

    Mark Greenhaw
    One Domain, Inc.


  • edited November 2005
    I'm using version 9 with Delphi 7.

    I tried setting the memo manually and running the report then. The bold is
    on when in the design view, but in preview or running the report it goes
    away. Could it have something to do with the header streatching to
    compensate for the changed memo height?




  • edited November 2005
    Hi Tim,


    Are you using the latest version 9.03? If not, I would recommend upgrading.

    If you create a new application, drop a report on a form and place a TppMemo
    object in the header band with any text and set it to Bold, do you still see
    the same behavior?

    --
    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.