Section style subreport not from the new page...
Hi,
I have a section style subreport in my summary band.
How can I print it on the same last page of the main report if there is
still enough space left?
As for now my subreport always prints on the new page despite the fact that
it could easily fit in the blank space of the last page of the main report.
Thank you,
MB.
I have a section style subreport in my summary band.
How can I print it on the same last page of the main report if there is
still enough space left?
As for now my subreport always prints on the new page despite the fact that
it could easily fit in the blank space of the last page of the main report.
Thank you,
MB.
This discussion has been closed.
Comments
A Section style Subreport by definition will start a new page when it is
generated on a report. Try using a Child Subreport with its KeepTogether
property set to True.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
report keep appearing on the pages where only subreport's unformation should
be printed.
Can I somehow prevent it?
Thank you.
MB.
The Header and Footer bands act as PageHeader and PageFooter bands so they
will reprint on every page unless they are suppressed. I would suggest
using the Report.OnStartPage to toggle the visibility of these bands if a
subreport is on this page.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Ok, but how do I do see "if a subreport is on this page", in order to
control bands visibility? Moreover I need to hide header bands only on those
pages that are used only for subreport information, otherwise I need to show
the header...
Thank you,
MB.
Try creating a flag and setting it in either the OnPrint or OnStartPage of
your subreports. Then using this flag value, you will be able to know if a
subreport is present on the current page, and toggle the visibility of the
header and footer bands accordingly.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com