Report never stops printing (Page Brake problem?)
?I have an issue with my report. It never stops printing sometimes.
The problem seems to be that it's hard to decide if it should give a new
page or not.
On a detailband I have a ppRichEdit.
And on DetailBand Before Print I fill it with text.
(LoadFromStream)
When I have this issu the report goes ok if I remove or add one more line
to the RTF.
Any idea about how to troubleshot this?
My code is pretty much:
if not ppDetailBand3.OverFlow then
begin
aStream:= TMemoryStream.Create;
try
RichEdit1.Lines.SaveToStream(aStream);
aStream.Position:= 0;
ppRichText3.LoadFromRTFStream(aStream);
finally
aStream.Free;
end;
end;
--- posted by geoForum on http://delphi.newswhat.com
The problem seems to be that it's hard to decide if it should give a new
page or not.
On a detailband I have a ppRichEdit.
And on DetailBand Before Print I fill it with text.
(LoadFromStream)
When I have this issu the report goes ok if I remove or add one more line
to the RTF.
Any idea about how to troubleshot this?
My code is pretty much:
if not ppDetailBand3.OverFlow then
begin
aStream:= TMemoryStream.Create;
try
RichEdit1.Lines.SaveToStream(aStream);
aStream.Position:= 0;
ppRichText3.LoadFromRTFStream(aStream);
finally
aStream.Free;
end;
end;
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
I would delete this line of code...
if not ppDetailBand3.OverFlow then
...and then it will just load the ppRichText3 with data every time the
detail generates.
I think that line of code could definitely cause the report engine to get
lost.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com