Move Subreport to second page

G

Guest

I have a report that has some controls, a sub-report, then some more
controls. This looks great when it prints on one page, but doesn't look so
good when the sub-report causes the report to go onto two or more pages.

How can I move the sub-report to page two when the report will cover more
than two pages? The only way I can do it cuurently is to always have the
sub-report on the second page (not good when it only has q or two items).

Thanks,

Dave
 
M

Marshall Barton

David said:
I have a report that has some controls, a sub-report, then some more
controls. This looks great when it prints on one page, but doesn't look so
good when the sub-report causes the report to go onto two or more pages.

How can I move the sub-report to page two when the report will cover more
than two pages? The only way I can do it cuurently is to always have the
sub-report on the second page (not good when it only has q or two items).


You need to use a KeepTogether property. Unfortunately,
KeepTogether only operates on a section or a group.

Assuming that your subreport is in the report's detail
section, create a group (View menu - Sorting and Grouping)
on the detail record's pk field and select Yes for the group
header and footer properties.

Now, you can move the "some controls" to the group header
section and the "some more controls" to the group footer
section. The subreport would remain in the detail section
and you can set the detail section's KeepTogether property
to Yes.
 
G

Guest

Thanks, doesn't quite do it (the group footer goes to the second page rather
than the detail section, but its given me some ideas.

Dave
 
M

Marshall Barton

Whatever doesn't fit on the first page will have to go on
the next page.

Maybe you have a ForceNewPage property set, or the group
footer's KeepTogether, or ...
 

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