Crystal Reports and Page Breaking 
Author Message
 Crystal Reports and Page Breaking

I have created a report. In the details section, I want 8 records printed
and on the 9th record I would like it it page break and go to the next page.

The result would be 8 detail records on each page.

How do I accomplish this?

Thanks,

David Pope



Sat, 22 May 2004 10:52:21 GMT  
 Crystal Reports and Page Breaking

Quote:

>I have created a report. In the details section, I want 8 records printed
>and on the 9th record I would like it it page break and go to the next page.

>The result would be 8 detail records on each page.

>How do I accomplish this?

>Thanks,

>David Pope

Don't know if this is the best way, but you can do it by adjusting the size of
the Page Footer so that only 8 detail lines fit on a page.


Sat, 22 May 2004 23:49:43 GMT  
 Crystal Reports and Page Breaking
Hi David,

If you are using Crystal 7 or higher, you can use a Conditional formula
to insert a page break.

There are three formulas you will need to use.  The first is to define a
a counter and initialize it to 0 for each page.

WhilePrintingRecords;
NumberVar Counter := 0;

Place this in the Page Header and you can format it to be suppressed so
you don't see it.

WhilePrintingRecords;
NumberVar Counter;

Counter := Counter + 1;

This formula goes into the Detail section and actually counts the
record.  Also format this formula to suppress so you do not see it.

Right click the grey left margin for the Detail section and select
Format Section from the menu.
Put a check in New Page After and press the formula button beside it and
use this formula.

WhilePrintingRecords;
NumberVar Counter;

Remainder (Counter, 8) = 0;

So what happens is, the counter will start from 0 on each new page.
Each time a record is processed in the Detail section, it will increment
the counter by 1.  Crystal will check that counter in the formatting and
if Counter / 8 has 0 for the remainder then it will do a page break.  So
only 8 records will be printed on each page now.

--
Sincerely,
Brian Dong
remove "nospam." from address to reply

Quote:

> I have created a report. In the details section, I want 8 records printed
> and on the 9th record I would like it it page break and go to the next page.

> The result would be 8 detail records on each page.

> How do I accomplish this?

> Thanks,

> David Pope



Mon, 24 May 2004 06:22:15 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. page break in crystal reports

2. Crystal Reports Page Breaking?

3. Page breaks in Crystal Reports

4. Crystal Report- Page Breaks

5. Page Breaks within Crystal Reports?

6. Adding a page break in Crystal Report

7. Page breaks in Crystal Reports

8. PAGE BREAK IN CRYSTAL REPORTS

9. Crystal Report {Page Break}

10. Crystal Report- Page Breaks

11. Page Break in Crystal 7.0

12. Pass Page Break from crystal to Text

 

 
Powered by phpBB® Forum Software