If last page is selected, the the foot is printed in all pages but not in the first page. If first page is selected, then is printed in all pages, but not in the last.
If last page is selected, first page not, and the report has only one page, then the foot is not printed
-- Jes?s Angel Garc?a Zarco Cointec
"Jesus Garcia Zarco(Cointec)" escribi? en el mensaje
These two properties are specific to reports where you don't want to print on the first page or don't want to print on the last page. You are seeing the correct behavior. What you will need to do, is set the Report.PassSetting to psTwopass. at the end of the first pass, you'll be able to read Report.AbsolutePageCount. Then, during the second pass, as it is previewed, or printed, you can determine:
if Report.SecondPass then Footerband.Visible := (Report.AbsolutePageNo = Report.AbsolutePageCount) else FooterBand.Visible := False;
i also used RAP to do this. But it would be great if it works without RAP. So a property on footer OnlyOnLast Page would be wonderfull. This could be handled without Reports set to Twopass.
Comments
Sorry the problem is:
If last page is selected, the the foot is printed in all pages but not
in the first page.
If first page is selected, then is printed in all pages, but not in the
last.
If last page is selected, first page not, and the report has only one
page, then the foot is not printed
--
Jes?s Angel Garc?a Zarco
Cointec
"Jesus Garcia Zarco(Cointec)" escribi? en el mensaje
on the first page or don't want to print on the last page. You are seeing
the correct behavior. What you will need to do, is set the
Report.PassSetting to psTwopass. at the end of the first pass, you'll be
able to read Report.AbsolutePageCount. Then, during the second pass, as it
is previewed, or printed, you can determine:
if Report.SecondPass then
Footerband.Visible := (Report.AbsolutePageNo = Report.AbsolutePageCount)
else
FooterBand.Visible := False;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
--
Jes?s Angel Garc?a Zarco
Cointec
i also used RAP to do this.
But it would be great if it works without RAP.
So a property on footer OnlyOnLast Page would be wonderfull. This could be
handled without Reports set to Twopass.
chris