Print subReport in detail on new page
I have a subreport in the detailband of a report and I want it to print
on a new page (for every record). Also it must be possible to
overflow. Is this possible? If tried numerous settings but can't get
it right.
BTW: Using RB 6.03
--
Thanks in advance,
Stijn Verrept.
on a new page (for every record). Also it must be possible to
overflow. Is this possible? If tried numerous settings but can't get
it right.
BTW: Using RB 6.03
--
Thanks in advance,
Stijn Verrept.
This discussion has been closed.
Comments
Try changing your subreport to a Section Style Subreport. This will start a
new page for every subreport printed. If this does not give you the results
you are after, you can try calling Report.DetailBand.OutOfSpace just before
the subreport is printed.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks this works!
--
Kind regards,
Stijn Verrept.
footer opn each page even when the subreport print behaviour is of type
pbSection. With pbChild there is no problem, but using pbSections I lose
the page numbering which is in the footer.
Thanks
Susie
If you are using a Section Style subreport, you can set the ResetPageNo to
False so you do not loose the report page numbering. This property is
published and is available on the subreport component.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I've done that and you're right, it numbers correctly, but it still
doesn't show the report footer on the subreport pages where the
PrintBehaviour is pbSection, so I'm unable to see the numbers.
Is there anything further I can do?
Thanks
Susie
I'm sorry, but by definition a Section Style subreport will not print the
main report's page footer. A work around could be to create a copy of your
existing page footer inside the subreport's footer or summary band.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I wondered if that was the case.
Thanks for your help
Susie
I've done as you suggest, but am having a bit of a problem with this.
With the visible property of the sub report's detail band set to false, When
a footer is added it generates endless pages ( > 2000 before I stopped it).
If I remove the footer it works fine. If the detail band is visible it
seems OK. I've just printed a simple label with caption="hello" inside the
footer, so I don't think it's a data problem. I can't use the summary band
as I need the footer at the bottom of each page, not just at the end of the
section.
Can you help?
Susie.
Are you conditionally setting the Detail Band's visibility to false?
Without the detail band, the report engine will not be able to calculate the
amount of space it needs to print each record of the dataset and therefor is
printing endlessly. Occationally you will also get an opposite effect of
the report just hanging when this is the case. Instead of making the detail
band invisible, try setting it to dynamic height or shrink it so there is no
space available.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I had set Visible it to false at the start regardless, as I'm printing
TeeChart in the header of the subreport and don't need anything further in
the way of details.
Setting the height to dynamic doesn't work, but setting it to static with a
height of zero seems to fix it.
Thanks
Susie