?
Solved

Records Per Page in Crystal Reports 9

Posted on 2003-11-28
6
Medium Priority
?
448 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

764 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