|
1) You have to make another pass over your data and figure out how many
pages there are before you build the spooled report, and then build the
report
2) Create a spooled file with a 'place marker' for the total number of
pages. After the report is generated, retrieve the number of pages from
the spooled file, and then read the original spool file (by api or cpysplf)
and write a new one, replacing the place marker with the total pages.
It can be a lot of work to go through for not a lot of benefit. Perhaps
you can convince your users to just let you add a summary page, where you
print something like - End of Report - xxx total pages. As long as they
get the summary page, they know they have the entire report.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.