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.
Comments
i have a detail band , inside 2 Sub-Report.
if space is too little, i need get a new free page.
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com