Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Details doesn't stay togheter Post Reply Post New Topic
Author Message
nalfein
Groupie
Groupie


Joined: 07 Jul 2008
Online Status: Offline
Posts: 47
Quote nalfein Replybullet Topic: Details doesn't stay togheter
    Posted: 19 Jun 2013 at 9:29pm
Hi all

like topic I've a problem with details in the report

I've this structure
Group a
Details a
Details b
Details c
Details d
End Group a.

All is fine until I've to print 2 pages of details.
For some reason the Details a is printed at the end of the 1st page and the rest in the 2nd page.
I've checked if "stay togheter" options of every section is flagged on (I've the program in another language so dunno if the name of the option is exactly this one) but is always flagged.

Dont know how to do to put all the group togheter in the 1st row of the second page and not splitted some in the 1st and some in the 2nd.

Thank you for answers


EDIT
A formula (dunno where and how to write heeh) that says "print 15 times the group and after go to next page" is welcome anyway for me.

Edited by nalfein - 19 Jun 2013 at 10:32pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Jun 2013 at 3:49am
open group expert
select group
options
options tab
mark 'keep group together' as true
IP IP Logged
nalfein
Groupie
Groupie


Joined: 07 Jul 2008
Online Status: Offline
Posts: 47
Quote nalfein Replybullet Posted: 20 Jun 2013 at 9:03pm
Already tested and not working. How about the "print group 15 times and after go to next page" option?

Only dunno how to do exactly.

EDIT

Ok done in this way.

Create a number variable and assign it the value 0 with this formula and put in the header of the report

numbervar count :=0;

In the details set this formula. Put where you want and make it invisible. The "if" is needed to reset the count.

whileprintingrecords;
numbervar count := count + 1;
if numbervar count > 15 then numbervar count :=1;
count


In the last row of the details in the x+2 field of the "new page after" put this formula

numbervar count;
if numbervar count > 14 then true
else false


So the report count 15 times print and after goes to next page.


Edited by nalfein - 20 Jun 2013 at 10:43pm
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.