Re: Problem with Memo stretching
D6, RB6.03
Hi there
I have a simple report that contain a memo and a label directly below the
memo.
The text for the memo as added in he beforeprint event ie :-
ppMemo1.Lines.Append('Memo Line1');
ppMemo1.Lines.Append('Memo Line2');
and therefore the memo stretch's depending on what lines have been added to
the memo.
The Label is set as ShiftwithParent = True and the DetailBand =
DynamicHeight.
All should be Ok. As the memo changes size, the Label should move up/down
as neccessary within the band.
If the memo only contains a small number of lines all is still OK.
However, if the memo has say 15 lines, the gap between the bottom of the
memo and the top of the label seems to increase when I print the page out to
the printer.
Is there a work around ie setting the label top position = the memo bottom
position when printing.
I would really appreciate your help.
Thanks Lee
Hi there
I have a simple report that contain a memo and a label directly below the
memo.
The text for the memo as added in he beforeprint event ie :-
ppMemo1.Lines.Append('Memo Line1');
ppMemo1.Lines.Append('Memo Line2');
and therefore the memo stretch's depending on what lines have been added to
the memo.
The Label is set as ShiftwithParent = True and the DetailBand =
DynamicHeight.
All should be Ok. As the memo changes size, the Label should move up/down
as neccessary within the band.
If the memo only contains a small number of lines all is still OK.
However, if the memo has say 15 lines, the gap between the bottom of the
memo and the top of the label seems to increase when I print the page out to
the printer.
Is there a work around ie setting the label top position = the memo bottom
position when printing.
I would really appreciate your help.
Thanks Lee
This discussion has been closed.
Comments
In the DetailBand.AfterPrint, you should be able to set the Label.Height =
to the Memo.Bottom as you said below. This will then look different on
screen but should print in the correct spot on paper. The screen output and
printer output can sometimes look different due to the conversion from
printer pixels to screen pixels.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com