Re: page 1 of x in 4gl reports ??? (fwd)
Posted in 1996
> We are constantly being asked to provide reports with PAge 1 of X on > our system. This is fine with simple reports, but with things like > inovices taht may have multiple different type of lines being printed > there is no simple calculation to know in advance how many pages there will > be. Short of pre-processing the whole invoice and then processing again > to print, is there any other easy way to accomplish this?? No easy way, I'm afraid. Well, not that I know of... :-) We have a similar problem at one of our clients, and what we've done is to make the X some fairly distinctive string like "&&&&&&" and then at the end of the report we pipe the file to sed and replace the string with the total number of pages. If you are particularly interested (or sed-impaired like me :), I'll look up exact procedure. Kerry, Walt, shouldn't this be in the FAQ? If it isn't, and everyone thinks it should be, I'll forward our humble efforts with pleasure... -- Ciao, Billy +------------------------------------------------------------------------------+ | Billy Wheeler Junior Programmer / Director The West Solutions Group | +------------------------------------------------------------------------------+ | (E) billy@west.co.za (U) http://www.west.co.za/billy.html | +------------------------------------------------------------------------------+ | "Come on honey! Pull daddy's finger!" - Bill Clinton | +------------------------------------------------------------------------------+