Home General

How i can skip to new page when bottom page is near ?

edited June 2011 in General
Hi


How i can skip to new page when bottom page is near ?

Like this code... :

procedure DetailBeforePrint;
begin

if Report......Y > 90% _OF_PAGE then
Report.NewPage;

end;

Comments

  • edited June 2011
    add :

    i have a detail band , inside 2 Sub-Report.


    if space is too little, i need get a new free page.
  • edited June 2011
    Hi Enrico,

    Take a look at the Subreport.StopPosition. You can use the StopPosition
    property to define the vertical position at which the stretchable will
    stop printing.

    Another option would be to detect the location on the page each time a
    detail band prints and if it is beyond the limit, toggle the visibility
    of a TppPageBreak component.

    if Report.Engine.PrintPosRect.Top > x then...


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.