Re: Print Page X of Y
Posted in 2000
Obnoxio The Clown — — source: Informix-list mailing list archive (1991-1998)
From: heyram@my-deja.com > >What logic should i use if i need to print Page X of Y in Reports using >I4gl. It's really ugly, unfortunately and still. 1. report to file 2. Where you want to put Page X of Y, do: print "Page " pageno, " of XYZZY" 3. After the report has finished, use wc to get the number of lines, divide by lines per page and then use sed or awk to replace XYZZY by the number of pages. 4. Take a shower and wash your mouth out with soap on your mother's behalf. :-) ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com