Print Page | Close Window

New page after n records in subreport

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=11224
Printed Date: 05 May 2025 at 3:43am


Topic: New page after n records in subreport
Posted By: DTSJR
Subject: New page after n records in subreport
Date Posted: 27 Sep 2010 at 4:50am
How can I get it so after 5 records in a subreport it creates a new main report page and continues onto the next 5 records?
Thanks.

Dan



Replies:
Posted By: lockwelle
Date Posted: 13 Oct 2010 at 3:36am
I don't know, but have you tried a counter in the subreport, and then in section expert, use the counter to force a new page in the x-1 button?  Something like:
 
shared numbervar iCount;
local booleanvar bNew := (iCount > 4);
if bNew Then iCount := 0;
bNew
 
in the details:
shared numbervar iCount := iCount + 1;
 
HTH



Print Page | Close Window