Solved

Records Per Page in Crystal Reports 9

Posted on 2003-11-28
6
444 Views
Last Modified: 2008-01-09
Hi,

I have a requirement where I need to print 6 records per page.  I have placed this recordset in the DETAILS section.  I want to print some information immediately after printing the 6 records.  But when I place this text in REPORT FOOTER, it prints it in the end of the report.  When I place this text in PAGE FOOTER, it prints it in the end of each page.

I want this text to print in every page IMMEDIATELY AFTER printing 6 records in details section.

How should I go about it.

Thanks in advance for your help.

Regards,
Kamlesh
0
Comment
Question by:kamleshrao
  • 2
  • 2
6 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 9837005
Are you able to use a grouping field for each set of 6 records.  If so then do this.

If not then what sort of info do you want to print after each set?

Pete

 
0
 

Author Comment

by:kamleshrao
ID: 9837288
I am not doing any grouping for this set of 6 records.  They are just displayed as they are fetched from SQL Server.

The info displayed below the set is mostly static text, and it occupies more rows than the 6 rows that prints in details.

Regards,
Kamlesh
0
 
LVL 77

Accepted Solution

by:
peter57r earned 50 total points
ID: 9837361
If there is no grouping available and you just want to print something after 6 records then do this.
Insert into the detail line a running totals field.  
You want Count any field in the detail line for this running total.
You can suppress the field once it's working.

Right click the 'D' of the detail line in design view.
Click Insert Section Below.
You now have a second detail section (Db)
Size this so that it fills the rest of the page when you have printed 6 records.
Put your static text into this section.

You now have to conditionally suppress this section so that it prints only every 6 records.
To do this right-click Db and choose Section Expert
Click the blue 'X+2' button aagainst the entry for 'Suppress(No Drill down)'

Create this formula which is:
Rtotal0 Mod 6 <> 0

Where Rtotal0 is the name of your RunningTotals field.

The expression:
Rtotal0 Mod 6
divides the curernt value of Rtotal0 by 6 and returns the remainder.  So the section is suppressed when there is a remainder and is not suppressed when there is no remainder.


Pete






.
0
 

Author Comment

by:kamleshrao
ID: 9848517
Hi Pete,

Thats great! Its working.. Thanks a lot.  I am getting what I wanted.

BTW, I am getting an additional page in the end now.  How can I avoid it?

Regards,
Kamlesh


0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question