Solved

Records Per Page in Crystal Reports 9

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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