Report sections on the same page

veecioxveeciox Member Posts: 3
edited 2005-01-03 in Navision Attain
Hi!

Maybe someone could suggest me how to print section header and section body on the same page.

Example:

Header1
body line
body line
...
body line
Header2
--New Page--
body line
body line

I want it to be like this:

Header1
body line
body line
...
body line
--New Page--
Header2
body line
body line

p.s. i've tried to use KeepWithNext. It didn't work. As I understood KeepWithNext only works with the sections of the same type (to keep two bodies on the same page).

Comments

  • g_dreyerg_dreyer Member Posts: 123
    What does you dataitems look like, and how do they relate to the header?
    I.e. is Header1 and Header2 two different records or two different dataitems?
  • veecioxveeciox Member Posts: 3
    Header1 and Header2 are two different dataitems.
    Header2 has a DataItemLink to Header1.
  • g_dreyerg_dreyer Member Posts: 123
    You will probably need to put in a pageloop (look at some of the invoicing reports, i.e. 206). With the pageloop you can decide what to print.

    As for you dataset... it's a bit weird with the datalink, because what will happen is...
    Header1
     body
       Header2
         body
    Header1
     body
       Header2
         body
    

    So I am not quite sure what you want to achieve with the two different headers. If you are after printing header1 only once, then continue to print header2 on all subsequent pages then the pageloop is your best bet.

    Regards,
    gus
  • afarrafarr Member Posts: 287
    You could try setting "New Page Per Record" to Yes, in the properties for dataitem Header2.

    Alastair
    Alastair Farrugia
Sign In or Register to comment.