Solved

Records Per Page in Crystal Reports 9

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
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 …

911 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

25 Experts available now in Live!

Get 1:1 Help Now