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

Dynamic height

edited July 2002 in General
Hi all!!

How I can set the Height of a detail band according to the
height of the data displayed in a DBmemo.?

i.e if I have a memo with the following lines:
a
b
c
with only 3 lines on the memo the memo height fits with the height of the
detail properly,
the problem is that
when I add another line to the memo (item d ) then the memo does not display
all the
lines cause the height of the detail is too small.

I have PrintHeight = phDynamic & dbMemo Stretch = True;

TIA
Julio.

Comments

  • edited July 2002
    Those settings are correct and should do the trick. The only question is how
    are you adding that extra line to the memo? Are you adding it manually? If
    so, when?

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited July 2002
    I dont add the item manually, the memo displays a value from a string field,
    so the string field can contain just 1 character or 5000 characters,I can't
    assign a space for 5000 characters on the height of the detail band cause
    not all the records on the dataset have 5000 characters, what I want is a
    dymanic height on the detail band as such way that allows me to print the
    entire record on the detail..

    Another thing is.. How can I force to the detail band to print on a new page
    when the next record to print does not fit with the available printable area
    i.e. The report already printed the first record on the detail band and this
    record needed 1/3 of the page so the next record starts printing after 1/3
    page and finish on the next page..


    Regards
    Julio.

    "Alexander Kramnik (Digital Metaphors)"
  • edited July 2002
    DetailBand = Dynamic Height and Stretch on the Memo is all you need for this
    behavior. Make sure that these settings are not being reset somewhere.

    To force the entire detail band onto a new page place all the components in
    the band into a region and set KeepTogether on the region to True.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited July 2002
    Thanks a lot Alex
    My report is looking good now, Only thing I could not get it to work is
    display the entire record on a page, I moved all the detail components into
    a region with keeptogether = True but does not work at all.

    Julio.

    "Alexander Kramnik (Digital Metaphors)"
  • edited July 2002
    Make sure that the the components are in fact inside the region. This might
    sound obvious but they might not necessarily get placed into the region when
    dragged. You can display the report tree (View->Report Tree) to be sure. The
    other way to get the entire record to stay together is to create a group
    that break for every record and set the group to Keep Together.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.