Main Report adding an extra page when a subreport is on the summary band.
I am using Delphi 2006 and RB 10.4 Ent.
I have a report that has title,detail,summary, and footer band. On the
summary band I have data summarized and a sub-report. The sub-report
only displays if certain data is available. When the sub-report is
visible, it moves the last label in the summary band to another page
that is printed after the sub-report. I have to set the sub-report to a
section to get make it print on another page. Any knowledge as to why
I am getting a extra page with the label on it, instead of it being on
the main report in the summary band. Also, if I remove the last label
in the summary band it prints just fine. I have a copy of the report if
its needed.
--
I have a report that has title,detail,summary, and footer band. On the
summary band I have data summarized and a sub-report. The sub-report
only displays if certain data is available. When the sub-report is
visible, it moves the last label in the summary band to another page
that is printed after the sub-report. I have to set the sub-report to a
section to get make it print on another page. Any knowledge as to why
I am getting a extra page with the label on it, instead of it being on
the main report in the summary band. Also, if I remove the last label
in the summary band it prints just fine. I have a copy of the report if
its needed.
--
This discussion has been closed.
Comments
A section style subreport by definition will print as if it is a completely
new report (starting on a new page and breaking after it is finished). Any
main report components that are printed after a section subreport will be
printed on a new page.
Try using a Child style subreport and the PageBreak component to control
where new pages are started.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks, Nico I got the page break to work fine. But its still taking
that last label in the summary band and putting it on the next page. So
now instead of having 3 pages, I have 2 pages, but the label is now on
the page 2 with the sub report. Any more suggestions?
--
be easier to either provide support and/or fix (if needed).
Ed Dressel
Team DM
Thanks for the help. I was recreating the report to send to you guys
and re-did the report. And now it works. so I take it that the report
was corrupt.
--
I do have one more question, this is an after thought. On this same
report, I have a header, I would like for the header not to show on the
subreport page, is there away to make that header invisible? I tried
doing reportname.headerband.visible := false; when the
beforesubreporttitleband generates. Any suggestions?
--
If you are using Section style subreports, the main report header band will
not show up when the subreport is printing. If you are using Child or Fixed
style subreports, you will need to find a way to determine which pages these
subreports begin and toggle the visibility of the header band before the
page starts printing. The Subreport Titleband.BeforeGenerate event firest
too late to hide the header band.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com