Subreport page break control does not work properly in Master Repo

B

Brian R

I've read th
I have a subreport (sub 1) that has several page break controls. My master
report (mast 1) contains a few controls to create a table of contents for
(sub 1) and a sub report control that contains (sub 1). If (sub 1) is run
independently of (mast 1) then page break controls work properly. When (mast
1) is run (sub 1) page breaks do not work. Not that I think this matters but
(Sub 1) does contain other 2 other sub reports (sub 1a) and (sub 1b).

I'm thinking there is something simple I'm missing here ... like a "keep
together" option that I'm just unable to locate or properly. Or is this a
control that is dropped out of sub-reports like the sub-report header.

Your help is appreciated in advance,
BR
 
M

Marshall Barton

Brian R said:
I have a subreport (sub 1) that has several page break controls. My master
report (mast 1) contains a few controls to create a table of contents for
(sub 1) and a sub report control that contains (sub 1). If (sub 1) is run
independently of (mast 1) then page break controls work properly. When (mast
1) is run (sub 1) page breaks do not work. Not that I think this matters but
(Sub 1) does contain other 2 other sub reports (sub 1a) and (sub 1b).

I'm thinking there is something simple I'm missing here ... like a "keep
together" option that I'm just unable to locate or properly. Or is this a
control that is dropped out of sub-reports like the sub-report header.


Because the main report is "in charge" of pagination
actions, subreports ignore their page header/footer
sections, page break controls, and the page event.

However, a subreport's KeepTogether might cause a new page
and the ForceNewPage property does work as expected. Maybe
there's a way for you to trade in your page break controls
for additional sections (group header/footer) that use
ForceNewPage. If the page breaks are in the detail section,
try adding groups on the same fields as the detail sorting.
If they are in a group header/footer add more groups on the
same field as the group. If they are in the report
header/footer then group on a constant expression such as =1
 
B

Brian R

Marshall Barton said:
Because the main report is "in charge" of pagination
actions, subreports ignore their page header/footer
sections, page break controls, and the page event.

However, a subreport's KeepTogether might cause a new page
and the ForceNewPage property does work as expected. Maybe
there's a way for you to trade in your page break controls
for additional sections (group header/footer) that use
ForceNewPage. If the page breaks are in the detail section,
try adding groups on the same fields as the detail sorting.
If they are in a group header/footer add more groups on the
same field as the group. If they are in the report
header/footer then group on a constant expression such as =1

Marsh,

Appreciate your prompt reply. I have added the additional grouping as you
described and your solution works just fine.

Thank you,
BR
 

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