Print Page | Close Window

Detecting a page break in sub-reports

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2022
Forum Name: Tips and Tricks
Forum Discription: Have you learned some great tricks to share with the group? Post them here!
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=9826
Printed Date: 02 May 2025 at 2:37am


Topic: Detecting a page break in sub-reports
Posted By: baaxah
Subject: Detecting a page break in sub-reports
Date Posted: 27 Apr 2010 at 3:25am
Hello,

I'm working with Crystal 9 and I can't find how to detect a page break into a sub-report. The only constraint I have is that this sub-report have to be placed in a footer section.

What I'm looking for :

TITLE
please see next page

------ ------------Page break ------------------------
TITLE
text
text

Of course, if the TITLE and the text can fit in the same page there is no problem.

So, I've been trying with different formulas, using shared vars to suppress a section with the sentence "please...", but I couldn't pull this off. Does anyone have an idea ?

Thanks for your time,
Regards

Ps: The idea with shared vars was to get the page number before and after the sub-report, but when I import these vars in the sub-report they are somehow recalculated.

Examples

EXAMPLE 1: (no problem here)
--------------------Page X----------------------------
info
info
info

Remarks

ljfldksjfklsdjfklsdjfkljsdklfjsdklfjsdklfjsdklfjklsdjdsfsfsd
djfsdklfjsdkljfklsdjfklsdjfklsdjfkldsfsdfsdfsd
jdfljdsklfjskldfjsdklsdfsdfsdfsdfsdfsd




EXAMPLE 2: (the text can't fit in the same page, so I have to add a little sentence such as "please see below")

--------------------Page X----------------------------
info
.
.
.
.
.

Remarks

please see next page  

BREAK PAGE
--------------------Page X+1----------------------------
Remarks

ljfldksjfklsdjfklsdjfkljsdklfjsdklfjsdklfjsdklfjklsdjsdfdsfsd
djfsdklfjsdkljfklsdjfklsdjfklsdjfkldfsdfsdf
jdfljdsklfjskldfjsdkldsfsdfsdf




Replies:
Posted By: lockwelle
Date Posted: 27 Apr 2010 at 3:36am
to the best of my knowledge, there is no way to detect anything in CR.  You might be able to force a page break, but as to where one occurred, no.  you can't determine how high a field that is set 'to grow' is either.
 
Sorry, I can't be of more help.



Print Page | Close Window