Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Print Top 10 Detail Records per Group Post Reply Post New Topic
Author Message
bshort1023
Newbie
Newbie
Avatar

Joined: 18 Jan 2012
Location: United States
Online Status: Offline
Posts: 18
Quote bshort1023 Replybullet Topic: Print Top 10 Detail Records per Group
    Posted: 26 Mar 2014 at 8:59am
I have a Crystal 2008 report that will have one group (part number).  I would like to print on the first 10 detail records associated with the part per group (so I would have one page per group).

So if I run the report for 8 parts I would have 8 pages with up to 10 detail records on each page.

This sounded easy enough but I can't figure out how to do it.

Thanks,

Bill
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 26 Mar 2014 at 9:34am
so if you have 11 details the 11th does not show at all, correct?
in the section expert set the gf to new page after formula as
not onlastrecord
create a Running total
name = suppressCount
field to summarize = anything
type = count
reset = on group change
in the detail section use the suppression fomrual of
#suppressCount>10
IP IP Logged
bshort1023
Newbie
Newbie
Avatar

Joined: 18 Jan 2012
Location: United States
Online Status: Offline
Posts: 18
Quote bshort1023 Replybullet Posted: 24 Apr 2014 at 5:11am
Ok my parameters have changed.  It seems that 10 records are not enough in some cases.  What I would like to do is print only the first page in each group.  I tried Suppress if "PageNumber <> 1" in the details section.  I then set the Group Footer, Report Footer and Page Footer to Suppress.

Now I get the first page correct but a blank 2nd page.

TIA.

Bill
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 27 Apr 2014 at 3:05am
Hi
 
You need to apply the same condition for rest of the sections also.. like page header / report header / group header / group footer..
 
PageNumber <> 1
 
and go in section expert and check, suppress blank sections check box for all sections.
 
Also check New page Before or After selection for any sections.  If so, uncheck that option.
 
-Sastry
Thanks,
Sastry
IP IP Logged
CamiloRobles
Newbie
Newbie
Avatar

Joined: 17 Aug 2017
Location: Mexico
Online Status: Offline
Posts: 3
Quote CamiloRobles Replybullet Posted: 21 Aug 2017 at 7:35am
Hi, I have the same problem; when I do what Sastry says, I have the first page and a blank page ¿what can I do?
Saludos!
Camilo
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Aug 2017 at 9:37am
are you resetting the page number after the group footer?
IP IP Logged
CamiloRobles
Newbie
Newbie
Avatar

Joined: 17 Aug 2017
Location: Mexico
Online Status: Offline
Posts: 3
Quote CamiloRobles Replybullet Posted: 21 Aug 2017 at 3:12pm
Yes,



Edited by CamiloRobles - 21 Aug 2017 at 3:14pm
Saludos!
Camilo
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Aug 2017 at 2:48am
what is your suppression formula?
Remove your suppression formula and place the page number on in the page footer and verify that the report is doing the numbering (and group printing) as you would need it to match your suppression criteria.
IP IP Logged
CamiloRobles
Newbie
Newbie
Avatar

Joined: 17 Aug 2017
Location: Mexico
Online Status: Offline
Posts: 3
Quote CamiloRobles Replybullet Posted: 22 Aug 2017 at 8:01am
My suppression formula is"PageNumber <> 1"
If I remove the suppression formula all pages are printed and page number in the footer shows what I expect.
e.g. First group needs 3 pages, so pages are numbered from 1 to 3. Second group needs 2 pages, page number is 1 and 2, an so on.
Saludos!
Camilo
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 22 Aug 2017 at 8:56am
From my testing, the page number does not seem to be resetting when the GF is suppressed.
If you remove the suppression formula from the GF It seems to 'work' except it still prints a 'blank' page after any group that is larger than 1 page.
I am not having much luck on a combo that resolves that issue.
Anyone have thoughts on this?
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.