L&L10 lastpage() is always false

Hi,
I have a problem in a report (L&L10).
The function lastpage() returns false in all the page, even in the last.
I want to print a footer only in the last page and I want to allocate this space in all the pages.
Can you help me?

Thanks
Marco

Sorry, I don’t want to allocate the space of the footer in all pages.