Re: PAGE x OF y
Posted in 1997
Lenny Vovk wrote: > > I have a requirement from my users to include in > the header of the report my 4gl program produces > the following: > > PAGE x OF y > > Obviously, it is very easy to include current page > number, my problem is how to calculate total number > of pages in my report. Any help would be greatly > appreciated. Probably the easiest way to do this is to process the report twice, once piped to /dev/null and simply count the pages (and omit any extra processing that doesn't affect the page count). When the first round is finished, let y = x, and process the report again, this time to it's real destination. ---------------------------------------------------------------------- John H. Frantz Power-4gl: Extending Informix-4gl frantz@centrum.is http://www.rl.is/~john/pow4gl.html