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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top