controlling where the page breaks in reports

support1support1 Member Posts: 18
I am working on a report for a customer and they are complaining that the page is breaking in such a way that some detail lines are being seperated from header lines. Is there any way that i can control when the page breaks?

Comments

  • krikikriki Member, Moderator Posts: 9,118
    That is quite difficult.
    If you want to control it, you have to control the complete layout.
    It is easier to reprint the header-record on the new page.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • TheDoubleHTheDoubleH Member Posts: 67
    One method you could try, is counting lines.

    Then, on after GetRecord do a:
    IF NumberOfDetailLines > LinesRemainingOnPage then begin
      LinesRemainingOnPage := TotalLinesPerPage;
      Currreport.newpage;
    

    Not pretty, but duable. HOWEVER what happens, if the number of details lines are greater than the number of lines on a page???

    How about using a TransHeader / TransFooter - this will allow you to add a line on the top of each page, that tells them what 'master' record you are on. i.e. "Customer 10000 - The Cannon Group, continued..."[/code]
    Kind Regards

    Henrik Helgesen,
    President | Helgesen Consulting
    about.me | LinkedIN
Sign In or Register to comment.