Using stretch with ppMemo
I seem to be having difficulty with the stretch property.
I have several ppMemos that have the stretch property set to True
They are placed within a dynamic detail band
I am adding lines with
ppMemo.lines.add('whatever')
but the memo is not stretching.
What am I missing?
JonD
I have several ppMemos that have the stretch property set to True
They are placed within a dynamic detail band
I am adding lines with
ppMemo.lines.add('whatever')
but the memo is not stretching.
What am I missing?
JonD
This discussion has been closed.
Comments
Where are you adding the lines to the memos (which events)? Are you
loading templates? Which version of ReportBuilder are you using? In my
quick testing with a memo in a dynamic height detail band, I was able to see
all lines when the memo was set to stretch. RB 10.06 Delphi 2007.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
RB 10.06
BDS2006
Lines added in DetailBandBeforePrint
DetailBand set to dynamic
Memo set to stretch
no templates
Jon
Below is a snip form a simple application I created that does the same thing
but seems to stretch the memo correctly. Perhaps you can alter it or let me
know how your setup is different.
procedure TForm1.Button1Click(Sender: TObject);
begin
ppReport1.Print;
end;
procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
var
liIndex: Integer;
begin
for liIndex := 0 to 24 do
begin
ppMemo1.Lines.Add('Added Memo Text: Line ' + IntToStr(liIndex + 1));
end;
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'll give it a test run Thursday in a minimal
program. What you show me below matches what I do...
however, it is in a large report and there may be other
issues "clouding the water".
Jon