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

DBMemo field not strected

edited October 2007 in General
I got a DBMemo field and set the Stretch property to TRUE.
However, it did not stretch to 2 rows when the text longer than the width.
Any idea?

Comments

  • edited October 2007
    Alan T wrote:


    Wordwrap?

    --
  • edited October 2007
    Is this the property? I found CharWrap at the top of the Object Inspector.

  • edited October 2007
    Alan T wrote:

    Hi Alan,

    From memory, yes. Try it and see.

    Regards,

    Ian

    --
  • edited October 2007
    Hi Alan,

    Are you certain the Stretch property of the DBMemo is set to True? Also,
    check that the band the DBMemo is in has its PrintHeight set to phDynamic.
    Are you by chance loading this report from a template? Where and when are
    you setting the stretch property?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2007
    > Are you certain the Stretch property of the DBMemo is set to True? Also,

    I will check the phDynamic property tonight.
    Yes, I set the Stretch property to TRUE when I click the DBMemo which is
    definitely on the detail band.

    Any difference in loading the report from template? You mean dynamically?
    One strange thing I found is:
    I placed a DBText(for DOB) next to this DBMemo(for name), there is a gap
    between these 2 (about 5 mm) . However, if the name is longer than the
    DBMemo width, the name should be chopped off, right? However, I found the
    name is overlapping the DBText, ie spanning to the right on the DBText
    filed.

    If the Stretch property not in effect, why it can 'stretch' horizontally?
    If the Stretch property is in effect, why it is not vertically?
  • edited October 2007
    Which version of ReportBuilder/Delphi are you using? This is not a known
    issue with ReportBuilder. Memos and DBMemos in ReportBuilder will wordwrap
    by definition, they will not grow horizontally. Try recreating the issue
    using a simple example (new report with a DBMemo in the Detail band
    connected to the DBDEMOS database). If you cannot recreate the issue with
    the simple example, there may be something else going on in your application
    causing this behavior (event code, etc.).

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