Link to home
Create AccountLog in
Avatar of jspc
jspcFlag for Australia

asked on

Page Break in Crystal Reports

Hello,

I have the attached crystal report forcing a page break on change of 'Product Category'.
The issue with is that the product categories are like:

M001
M002
M003

I need all the "M" to be on one page and then when the product category changes, to then force a page break, EG if the product category went to ORD.

Please find attached a save with data copy of the file.

Thanks.
ProductOutstandingOrdersDinSan.rpt
Avatar of Mike McCracken
Mike McCracken

I don't see anywhere that the problem exists.

Do you want all product categories that start with M grouped so there is no page break or are there some product categories that start with M that should cause a page break?

One thing you could try would be to create a new formula
ProductCategoryPage
If Left({ProductCategoryField},1) = 'M' then
    'M'
Else
   {ProductCategoryField}

Open in new window


Add a group based on that formula (insert it then move it so it is before group 6)
DO the page break on that group.

mlmcc
Avatar of jspc

ASKER

All product categories that start with Mr grouped and when the first character changes EG to O then force a page break
Avatar of jspc

ASKER

That should be M
Avatar of jspc

ASKER

I can't seem to get it to work ...
I have it working but because you have so many group headers suppressed it is difficult to verify

mllmcc
ProductOutstandingOrdersDinSan--1-.rpt
Avatar of jspc

ASKER

Ok I'll try it out ...

The other point I need to mention is that the leading characters need to include

A, C, D, M, O

So the formula needs to factor these in
Avatar of jspc

ASKER

I have tried your modified report, it's not working correctly.

I will explain again.

I need to group the product category field, so all the ones which start with 'M' are grouped. All the ones which start with 'O' are grouped.
When they change (change from M to O) a page break is forced.

The formula needs to factor in:
A, C, D, M, O
Avatar of jspc

ASKER

I have got the formula working now, (PageBreakCategory) however it's not grouping the 'M' (first digit) together.
Please find attached sample report with saved data.
ProductOutstandingOrdersDinSan.rpt
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer