Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Tips and Tricks
Message Icon Topic: Detecting a page break in sub-reports Post Reply Post New Topic
Author Message
baaxah
Newbie
Newbie


Joined: 27 Apr 2010
Online Status: Offline
Posts: 1
Quote baaxah Replybullet Topic: Detecting a page break in sub-reports
    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

IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet 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.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.