Keep Together Subreports

J

JCM

I have a report that consists of over 10 subreports in the detail section.
Each subreport has a minium length of 3 inches but is never greater than 6
inches in length.

I do not want the subreports from breaking across a page break.

I thought the KeepTogether properties of the detail section of each
subreport set to Yes would accomplish the task. I assumed that since no
subreport exceeds the length of a page it would work. It didn't.

I also set the Keep together property to No for the Detail Section of the
Main Report. I was thinking that the detail section always spans many pages
and I didn't want to force the issue. That didn't help. I changed the
property to Yes just for grins with no change in output.

I there anyway to prevent subreports from breaking acrossed a page??

Thanks
Johnny
 
M

Marshall Barton

JCM said:
I have a report that consists of over 10 subreports in the detail section.
Each subreport has a minium length of 3 inches but is never greater than 6
inches in length.

I do not want the subreports from breaking across a page break.

I thought the KeepTogether properties of the detail section of each
subreport set to Yes would accomplish the task. I assumed that since no
subreport exceeds the length of a page it would work. It didn't.

I also set the Keep together property to No for the Detail Section of the
Main Report. I was thinking that the detail section always spans many pages
and I didn't want to force the issue. That didn't help. I changed the
property to Yes just for grins with no change in output.

There is a KeepTotgether property for groups, which is not
useful in this case. The only other KeepTogether is for
individual sections. This means that each subreport needs
to be in its own main report section.

This can be done by creating 5 groups (in Sorting and
Grouping - View menu) on the same field that is used to sort
the main report records. (If the main report is unbound,
group on constant expressions such as =1). Specfy Yes for
both these dummy group's Header and Footer sections. Then
put each subreport in a separate group header and footer
section and set these section's KeepTogether property to
Yes.
 
J

JCM

Marshall Barton said:
There is a KeepTotgether property for groups, which is not
useful in this case. The only other KeepTogether is for
individual sections. This means that each subreport needs
to be in its own main report section.

This can be done by creating 5 groups (in Sorting and
Grouping - View menu) on the same field that is used to sort
the main report records. (If the main report is unbound,
group on constant expressions such as =1). Specfy Yes for
both these dummy group's Header and Footer sections. Then
put each subreport in a separate group header and footer
section and set these section's KeepTogether property to
Yes.

That looks like it is going to work. Thanks alot
Johnny
 

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

Top