Crystal Reports Repeat Header on Next Page

Asked

Viewed 781 times

0

Good night.

I have a report prepared in the following structure:

Groupheader1: City ( Grouping by city and with the Keep Header option on Next Page Marked)

Groupheader2: Person ( Grouping by Person and with Keep Data Set Together checked)

Groupfooter1: Suppressed

Groupfooter2: Suppressed

So far so good, considering that when I print the report it brings the following configuration (example):

SÃO PAULO
======================
Informações da Pessoa1
======================
Informações da Pessoa2
======================
Informações da Pessoa3
======================

RIO DE JANEIRO
======================
Informações da Pessoa4
======================
Informações da Pessoa5
======================

The big problem is that depending on the volume of data it does not perform the break of the city header, as it would like it to do, resulting in the following impression:

Page 1:

SÃO PAULO
======================
Pessoa1
======================
Pessoa2
======================
Pessoa3
======================
Pessoa4
======================

RIO DE JANEIRO
======================

Page 2:

RIO DE JANEIRO
======================
Pessoa5
======================
Pessoa6
======================

As you can see, person 5 doesn’t fit on the page, but he still prints RIO DE JANEIRO on page 1 and then again on page 2, now with Person5.

What I want to happen is that RIO DE JANEIRO is not printed on page 1 if there is no space to print at least one person together. In that case it would only appear on the next page.

Also, if there is space to print at least one person, he would print RIO DE JANEIRO on the first page along with the first person and RIO DE JANEIRO again on the second page, but now with the information of the next person.

I tried to fix this with the option Keep Data Set Together marked also for Groupheader1, but it performs page break, which is not expected.

Any idea how to proceed?

Hug!

  • Use , right click on the group , change group, tab options , keep group together

  • Motta, grateful for the return! The big problem is that with this option, it will understand as a single block and carry out the break of the page.

  • has also the option to repeat the header on each page , would be this ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.