How to shif summary band to next page.

Dear all,
In my report if data more than the data band the display of summary band overlap the Page footer. So i want to shit my summary band to next page if the free space height of the data band < the height of summary band.
How i shift the summary band to next page when height of the data band < the height of summary band.
Thanks in advance.
In my report if data more than the data band the display of summary band overlap the Page footer. So i want to shit my summary band to next page if the free space height of the data band < the height of summary band.
How i shift the summary band to next page when height of the data band < the height of summary band.
Thanks in advance.
Comments
You may use script:
if (Data1.Height < ReportSummary1.Height)
Engine.StartNewPage();
Dear Alex,
In which Event i put this code.
Dear alex,
Thanks.
In report when the session expired the error shown as
Index was out of range. Must be non-negative and less than the size of the collection.
in the line.
ReportPage page = FReport.Pages[0] as ReportPage;
How i can handle this.
Thanks in advance.
Dear Alex,
In the application after some little bit later i access (after page session expires) then i access the page it will show the above error.