The following onRender event handler for the detailBand of the stream source prevents a band from being split between two pages by checking the renderOffset.

function DETAILBAND_onRender

   if this.renderOffset > this.streamFrame.height - 1000 

      this.parent.beginNewFrame( ) 

   endif 

A minimum height of 1000 twips is used in this example. The band references the current StreamFrame through the streamFrame property. The band’s parent is the StreamSource, which has the beginNewFrame( ) method.