Last page of report not printing
Hi,
I am using ReportBuilder 6.03 & Delphi 5.
I have a small label report where I need a footer to be printed only on the
last page. I cannot use a summary band as I want it to be printed at the end
of the label and not at the end of the Report.
I tried setting the visibility of the footer band by using something like
below on the before print event.
ppFooterBand.Visible := (Report.AbsolutePageNo = Report.AbsolutePageCount)
This does not work in all cases depending on the no of records in the detail
band. In some cases the page count is 3 and only 2 pages are printed (with
all information on the detail band being printed on 2 pages) with the 3rd
page which had to print the footer never printing.
Any help is appreciated.
TIA
Srikumar
I am using ReportBuilder 6.03 & Delphi 5.
I have a small label report where I need a footer to be printed only on the
last page. I cannot use a summary band as I want it to be printed at the end
of the label and not at the end of the Report.
I tried setting the visibility of the footer band by using something like
below on the before print event.
ppFooterBand.Visible := (Report.AbsolutePageNo = Report.AbsolutePageCount)
This does not work in all cases depending on the no of records in the detail
band. In some cases the page count is 3 and only 2 pages are printed (with
all information on the detail band being printed on 2 pages) with the 3rd
page which had to print the footer never printing.
Any help is appreciated.
TIA
Srikumar
This discussion has been closed.
Comments
Try creating a group around the labels and using the group footer rather
than the page footer or summary band. The group footer will only print at
the end of the group so you won't have to worry about setting its
visibility.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I can do that but it will be just something like the Summary band as it will
print immediately after the detail records and not at the end of the page as
I want.
I want that info to print consistently at the last line of the page (page
footer ideally) irrespective of the no of records.
Cheers
Srikumar
It is possible to position the summary and group footer bands on a page
using the PrintPosition property. If you are printing to an 8.5" x 11"
piece of paper, you could set the PrintPosition of the summary band to 10
and it will print at that position on each page.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks - that worked.
Cheers
Srikumar