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

Report never stops printing (Page Brake problem?)

edited July 2007 in General
?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

Comments

  • edited July 2007

    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
This discussion has been closed.