report page breaks

  • Thread starter Thread starter Mark O'Shaughnessy
  • Start date Start date
M

Mark O'Shaughnessy

I have an application with data that is grouped by
category. Each category has multiple records that need to
be printed in a specific order. Within each category there
are multiple records that must be printed together.(not
split between pages). I am trying to get a report to print
the data so that the fewest # of pages are printed. If the
report page 1 is 50 lines long and the first keeptogether
mark would start on line 48 and is 3 records long the code
should place a break after line 47. Likewise if the first
keeptogether is on line 45 and is 5 records long then all
should print normally on page 1. The location on the page
and length of the keeptogether is variable. Any ideas on
how to set this up or accomplish what I am trying to do
would be appreciated.
Thanks
Mark
 
Mark said:
I have an application with data that is grouped by
category. Each category has multiple records that need to
be printed in a specific order. Within each category there
are multiple records that must be printed together.(not
split between pages). I am trying to get a report to print
the data so that the fewest # of pages are printed. If the
report page 1 is 50 lines long and the first keeptogether
mark would start on line 48 and is 3 records long the code
should place a break after line 47. Likewise if the first
keeptogether is on line 45 and is 5 records long then all
should print normally on page 1. The location on the page
and length of the keeptogether is variable.


Sounds like you need to add another group level on whatever
field determines the batches of records that must stay
together (by using the group's KeepTogether property). You
can make the group header zero height or invisible if you
have no other need for it.
 
Back
Top