Height of stretchable Region containing stretchable memos
I am mystified: what determines the printed height of a stretchable region
containing stretchable memos?
In my report I have a region containing (in order) all stretch = true
ppRichText1
ppMemo1, bottom offset 3, fixed position (yes the richtext could stretch
all over it)
ppMemo2, bottom offset 3, shift relative to memo1.
ppMemo3, bottom offset 3, shift relative to memo2.
When I have text in memo2 and/or memo3 all looks as I would expect. But when
ppmemo2 and ppmemo3 are empty, the region is height greater than
memo1+offset.
This is throwing my report layout and leaving bigger gaps than I want. I
have experimented, wondering if the height and position of the memos in
designer have an effect. This is what I thought at first, but does not seem
to be it.
Can someone explain?
Sarah
containing stretchable memos?
In my report I have a region containing (in order) all stretch = true
ppRichText1
ppMemo1, bottom offset 3, fixed position (yes the richtext could stretch
all over it)
ppMemo2, bottom offset 3, shift relative to memo1.
ppMemo3, bottom offset 3, shift relative to memo2.
When I have text in memo2 and/or memo3 all looks as I would expect. But when
ppmemo2 and ppmemo3 are empty, the region is height greater than
memo1+offset.
This is throwing my report layout and leaving bigger gaps than I want. I
have experimented, wondering if the height and position of the memos in
designer have an effect. This is what I thought at first, but does not seem
to be it.
Can someone explain?
Sarah
This discussion has been closed.
Comments
within a region. To model the behavior that you are describing place a
subreport component where this content is supposed to be. Then place the
richtext and the memos in the detail band of the subreprort with their
ShiftRelativeTo property set as desired. Make sure that the datapipeline of
the subreport stays unassigned.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
"The ShiftRelativeTo behaviour is disabled for Memos when they are contained
within a region. ..."
Sorry, but I don't see how that can be true. The lower memo2 and memo3
definitely shift relative although they are inside the region. Otherwise the
text would just overwrite as memo1 & 2 stretched, which it does not do. Set
shift relative = false and it does overwrite!!!
Stretching is fine, no overwriting occurs. But what determines the printed
height of a stretchable region containing stretchable memos especially when
some memos are empty????
I am in no rush to use a subreport just yet. I just want to know how to get
the region to be small when some of the memos are empty.
Sarah
currently disabled within the report designer. The height of a stretchable
region is determined by the internal component with the greatest height.
When memos are empty they are not rendered, therefore if memos 2 and 3 are
empty the region should stop at the bottom of memo1. There are two things to
check if that is not the behavior you are seeing. 1) Is the bottom offset of
the region 0. 2) Are the memos really empty. If the memo containts
whitespace it will still render and it's bottom offset will be incorporated
into the height.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com