home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / oracle / 1155 < prev    next >
Encoding:
Text File  |  1992-07-29  |  2.6 KB  |  75 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!rde!andy
  3. From: andy@homebase.vistachrome.com (Andy Finkenstadt)
  4. Subject: (SOLUTION ENCLOSED) Re: SQL*Reportwriter last page eject
  5. Message-ID: <1992Jul29.132110.21823@homebase.vistachrome.com>
  6. Reply-To: andy@homebase.vistachrome.com
  7. Organization: Vista-Chrome Incorporated
  8. References: <fragante.712263892@unixg.ubc.ca> <dewey-270792155628@sebastian.centerline.com>
  9. Date: Wed, 29 Jul 1992 13:21:10 GMT
  10. Lines: 63
  11.  
  12. dewey@centerline.com (Devan F. Dewey) writes:
  13.  
  14. >In article <fragante.712263892@unixg.ubc.ca>, fragante@unixg.ubc.ca (Gv
  15. >Fragante) wrote:
  16. >> 
  17. >> Our SQL*Report always prints a blank last page on every report. How can we
  18. >> get rid of this ?
  19. >> 
  20. >> Thanks.
  21.  
  22. >Make SURE this answer gets to the net!!! I feel like we kill about 18 trees
  23. >a day due to this little gremlin.
  24.  
  25. Actually, it is the print spooler that prints that extra blank page
  26. at the end.  Print to "File" sometime in SRW and you will notice that
  27. the last character in the file is the form-feed character.  (This only
  28. applies to ascii print definitions, the postscript definitions
  29. do not suffer from this problem with the right filter.)  
  30.  
  31. Now look at the Unix print spooler in (your mileage may vary) 
  32.  
  33.     * /usr/spool/lp/admins/lp/interfaces/{printername}
  34.  
  35. One of the last lines inside the print_copies loop is "echo "\014\c",
  36. which says output a form feed.
  37.  
  38. There are three possible changes that will fix this problem!
  39.  
  40. One:
  41.  
  42.     Change the Oracle PRINTDEF.DAT file for your printer definition(s)
  43.     to include the "fs" option.  To wit:  there is currently a setting
  44.     for ff=(Control-L) and no fs setting for the ascii printers.  There
  45.     is an 'fs' for the postscript printers that does "erasepage 
  46.     initgraphics" which prevents the extra-page problem.  Add an "fs=:"
  47.     (ie: nothing) to the 'wide' and 'dflt' definitions (if that's all
  48.     you use).
  49.  
  50. Two:
  51.  
  52.     Change the printer script to NOT emit that form feed.
  53.     Side effect: OTHER printings from programs that don't do their
  54.     own pagination and form feeding won't start at the beginning
  55.     of a page.
  56.  
  57. Three:
  58.  
  59.     Write a custom filter in your favorite language that removes
  60.     blank pages at the end of a file.  This is certainly the hardest
  61.     of any changes.
  62.  
  63.  
  64. My permission granted to include this in any materials with proper
  65. attribution.
  66.  
  67. -Andy
  68.  just an oracle customer
  69.  
  70. -- 
  71. Andrew Finkenstadt       | Vista-Chrome, Inc.   |    NIC Handle: AF136
  72. GEnie Unix Sysop/Manager | The Printing House   |   ...!uunet!rde!andy
  73. +1 904 222 2639 home     | 1600 Capital Cir SW  |  andy@GEnie.geis.com
  74. +1 904 575 0189 work     | Tallahassee FL 32310 | andy@vistachrome.com
  75.