Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New page before when a detail section last on page.

Jon_GM96

Programmer
Oct 17, 2024
1
0
1
Hi,

I have a report that looks like this.

Report Header
Detail a Text object 1
Detail b SubReport 1
Detail c SubReport 2
Detail d Text object 2
Detail e SubReport 3
Detail f SubReport 4
Detail g Text object 3
Detail h SubReport 5
Detail i SubReport 6
Report Footer


I want that if the Detail d or Detail g are the last section of a page they start on a new page.

Currently, when we print the report sometime we have this result.

Page 1:
Report Header
Detail a Text object 1
Detail b SubReport 1
Detail c SubReport 2
Detail d Text object 2

Page 2:

Detail e SubReport 3
Detail f SubReport 4
Detail g Text object 3
Detail h SubReport 5

Page 3:
Detail i SubReport 6
Report Footer

I want this if the subreport 3 doesn't fit on page 1

Page 1:
Report Header
Detail a Text object 1
Detail b SubReport 1
Detail c SubReport 2

Page 2:
Detail d Text object 2

Detail e SubReport 3
Detail f SubReport 4
Detail g Text object 3
Detail h SubReport 5

Page 3:
Detail i SubReport 6

I tried different things with "keep together" settings but nothing works.

Thanks
 

Part and Inventory Search

Sponsor

Back
Top