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

DBText word wrapping

edited October 2001 in General
Hello.

In a report I'm making a field has variable length characters, from 10 to
255 aprox, but the most of them are short. So, I put a DBText with a medium
width to display it. When the field is larger than the DBText, it cuts the
text and doesn't display the entire content. Which I need to do is to make
the DBText taller so as to include the whole field content in it, resizing
automatically, I think it's called word wrap, but I don't know if report
builder controls support it. Is there a way to do this? Do I have to use
another component in the report?
Thank you very much.

Daniel Alvarez

Comments

  • edited October 2001
    Hello Daniel,

    Try using a DBMemo control instead of DBText. When you place the DBMemo on
    the page, set the width to the width you want the paragraph to be, and then
    right click on it and select "Stretch" from the popup menu. The DBMemo
    field will continue to wrap text at the end of each long line and move
    subsequent text down the page within the confines of the control's width,
    rather than truncating it.

    Vinnie Murdico
    Software with Brains, Inc.
    http://www.softwarewithbrains.com
  • edited October 2001
    Thank you very much, Vinnie.

    Vinnie Murdico escribi? en el mensaje de
    noticias 8EAE82296ACCD311A039005004E0CAC0055168@DMSERVER...
    on
    then
  • edited October 2001
    I've tried this, and it works OK, but with a little problem. The DBmemo
    makes it taller, but it overlaps the next control down in the detail band.
    What I need is that the control resizes but the next line begins a where the
    actual line ends, so as not to overlap the text.

    Daniel Alvarez


    Vinnie Murdico escribi? en el mensaje de
    noticias 8EAE82296ACCD311A039005004E0CAC0055168@DMSERVER...
    on
    then
  • edited October 2001
    Use the ShiftWithParent property for non stretching controls, and use the
    ShiftRelativeTo on stretchable controls. Check out the help file for more
    info.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited October 2001
    Thanks.. It works OK.

    Daniel Alvarez


This discussion has been closed.