Printing blank pages
Posted in 1996
> > Please, can anyone offer some advice. I am running Informix 4gl 7.x > on a SCO Openserver box. My problem is that every report job that > I send from Informix has a blank page appended at the bottom of the > report. This is obviously environmentally unfriendly and nauseating for > my users. I am not using the "eject page" or "skip to top of page" > commands anywhere. If I print using "lp" from unix, no blank page is > added. This has led me to believe that perhaps I can instruct Informix > not to add this blank page. > > I would be grateful for any advice in relation to the above. > > Cheers, Sean. > Here is a little awk script we use to trim out excess blank space. In this case it leaves 5 blank lines and trims all else. We use it when out-putting to the screen to trim excess white space. awk '{ if (NF == 0 ) blank_lines++ else { if (blank_lines > 5) blank_lines=5 while (blank_lines) { printf "\\n" blank_lines-- } print } }' cheers j. _____________________________________________________________________________ Jack Parker - Hewlett Packard, DMD/IS Boise, Idaho, USA jparker@boi.hp.com Currently on loan to PLD/PE _____________________________________________________________________________ If anything can go wrong, fix it. To hell with Murphy. _____________________________________________________________________________ Any opinions expressed herein are my own and not those of my employers. _____________________________________________________________________________