Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8705

How to insert Page Break when Summary value in Group Footer changes?

$
0
0

Hello experts,

 

That seemed to be very easy ;(

I have built a report on data of hierarchical nature.

The report has a single group. It displays only Group lines and hides Details section.

I group by NmDocID field. Employee Code that prints in a group footer is Max(Empl_Code) in that group. 

 

                NmDocID             Employee Code {@Max_EmpL}

 

GF1        23                                           ALB900

GF1        28                                           ALB900

                --- Page Break ----

GF1        57                                           BAR900

--- Page Break ---

GF1        63                                           BIT900

                ...

 

I need to print each Employee on a separate page. For that I need to insert a Page Break when Group Summary (Employee field) in the next line is different from Group Summary in the current line (see the sampleabove).

 

Please note that Employee Code is present only in one detail line, and there is no way that I know of to get it into every Detail line without ruining the whole report. Typical group contains three and more Detail lines.

 

Things I tried so far:

  • - To apply NEXT function to a formula that prints Group Summary {@Max_EmpL}. However Formula Editor says: ‘This formula has no previous or next value’.
  • - Created formulas with Next and Previous functions and applied them to Detail lines. Unfortunately Crystal can read only ONE line up or down from the current line. With my typical group being three lines long the values are still one row apart, and so I cannot compare them to trigger a page break

 

I know the hurdles have to do with multi-pass model that Crystal uses to process data.

However the task seems to be too simple not to have a solution...

 

Thank you for any ideas.

 

MJ


Viewing all articles
Browse latest Browse all 8705

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>