Sections and keepwithnext

DnealDneal Member Posts: 103
Hi,

I have read some articles on keepwithnext on the forum. But I still don't have a clear understanding about sections and how they display.

I'm doing a report of payroll history, I'm using a copy of the Payroll Check Report as a base. Because it's a history report I don't want a new page per record so I set this property to no. However when my report does go to the next page it spilts the current record and continues to print on the next page. I want to keep the records together.

I'm using the following dataitems:
Integer CheckPages
Integer Paystub1andstub2
Integer Paystub3andstub3

How do I get all of these to stay together? I have tried Keepwithnext. But I understand it only works with the same type...I assume same type means same dataitem..correct?

I have read that I could use pageloop, but I don't understand what pageloop does really...any thoughts are greatly appreciated.

DNeal

Comments

  • ara3nara3n Member Posts: 9,257
    How about insert the records that you are printing into a temporary record. Then print the temporary record which will be combination of both dataitems. Now if the combined records of the two dataitems is greater than one page it will role to the next page.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.