I have a report with a header that I want printed on _every_ page, and a header that I want printed only on pages that detail lines get printed, not on pages where only the summary gets printed.
Without knowing anymore about the data, I would suggest using separate regions in the header band on top of each other. Then toggle their visible property when you know you have detail data, or reached the end of the dataset (EOF) and the summary is printing.
Another option is to use separate subreports. Set the PrintBehavior of each to pbSection. This will cause each subreport to print a separate header and footer band, as the section style subreport behaves more like an embedded report and has control over the entire page and none of the main report bands will print in the section style subreport pages. Use an empty main report and place the section style subreports in the main reports detail band. See the installed main reports demos #51-52 for an example of this technique.
Comments
regions in the header band on top of each other. Then toggle their visible
property when you know you have detail data, or reached the end of the
dataset (EOF) and the summary is printing.
Another option is to use separate subreports. Set the PrintBehavior of each
to pbSection. This will cause each subreport to print a separate header and
footer band, as the section style subreport behaves more like an embedded
report and has control over the entire page and none of the main report
bands will print in the section style subreport pages. Use an empty main
report and place the section style subreports in the main reports detail
band. See the installed main reports demos #51-52 for an example of this
technique.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Thanks!
Anthony.