Solved

Records Per Page in Crystal Reports 9

Posted on 2003-11-28
6
440 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now