X of Y
George Simon
george at worldest.com
Thu Oct 13 10:30:19 PDT 2005
> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com [mailto:filepro-list-
> bounces at lists.celestial.com] On Behalf Of Kenneth Brody
> Sent: Thursday, October 13, 2005 12:34 PM
> To: Christopher Yerry
> Cc: List Filepro
> Subject: re: X of Y
>
> Quoting Christopher Yerry (Thu, 13 Oct 2005 09:07:30 -0700 (PDT)):
> [...]
> > My contentious comment:
> > There is no reason page x of y is not in filepro this
> > is 2005 not 1977.
> [...]
>
> And please explain how you can know how many pages will be printed
> _before_ the report is generated. Remember to take into account
> subtotal breaks, records being printed multiple times (or not at
> all) with PRINT statements, forced page breaks via PAGE, and non-
> fixed-length records because of "remove unwanted blank lines".
>
> --
> KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
> http://www.hvcomputer.com
> http://www.fileProPlus.com
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
I think this can be done rather easily by printing the report to a file,
saving the total number of pages, changing the printer name to a line
printer and then using the 'reset' command. A little math is needed to get
the correct page numbers because the 'reset' command does not reset the @pn
value but it is rather simple to get the correct page number by deducting
the total number of pages from the @pn value. PN of TP - PN=@PN-TP
It works for me and the reset command makes it happen so fast, it is almost
transparent to the user.
More information about the Filepro-list
mailing list