home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / PRNMON.ZIP / PRNMON.DOC < prev    next >
Text File  |  1989-02-15  |  3KB  |  77 lines

  1. NOTE: This program has NOT been "fully" tested. 
  2.       Use at your own risk. 
  3.  
  4.      This monitor is designed to eliminate leading "garbled"
  5. printer output when using the OS2 SE 1.1 Spooler Queue 
  6. Manager and IBM4201 driver with an incompatible printer. The
  7. output is designed to be that of a "generic" driver. 
  8.      The printer I am using is a HP Paintjet hooked up to a 
  9. Model 50 running IBM OS2 SE 1.1.  I have no fonts loaded via
  10. the control panel. I tester the monitor with straight text, 
  11. text with embedded escape sequences, and raster image files,
  12. and encountered no errors in the output. 
  13.      Start the monitor program after the Spooler Queue 
  14. Manager has finished loading. It may also be possible to 
  15. remove statements (printf's for instance) and detach the 
  16. process so it will not take up a screen group. 
  17.      The monitor is loaded last in the chain and is designed
  18. to operate on the first six packets for each new job sent by
  19. the spooler.  Each new job appears to be initialized with 1 
  20. "control" packet and 5 packets of escape sequences in the 
  21. following order: 
  22.  
  23.     Packet 1        00 00 00 00    --> packet header info 
  24.       4 bytes 
  25.  
  26.     Packet 2        00 00 00 00    --> packet header info 
  27.       16 bytes      1B 35 00 
  28.                     1B 34 
  29.                     1B 43 00 0B 
  30.                     12 
  31.                     1B 52 
  32.  
  33.     Packet 3        00 00 00 00    --> packet header info 
  34.       16 bytes      1B 58 01 FF 
  35.                     0D 
  36.                     1B 55 00 
  37.                     1B 46 
  38.                     1B 48 
  39.  
  40.     Packet 4        00 00 00 00    --> packet header info 
  41.       12 bytes      1B 54 
  42.                     1B 5F 00 
  43.                     1B 2D 00 
  44.  
  45.     Packet 5        00 00 00 00    --> packet header info 
  46.        7 bytes      1B 49 00 
  47.  
  48.     Packet 6        00 00 00 00    --> packet header info 
  49.        8 bytes      1B 43 00 0B 
  50.  
  51.      Blindly editing these packets is probably risky at 
  52. best. I have no idea what determines the size and 
  53. segregation of these escape sequence packets.  It would 
  54. probably be valid to put them all in packet 2 (there should 
  55. be room).  I also have no idea what effect
  56. changing-adding-deleting fonts will have on the operation of 
  57. the monitor.  Changes like these may insert packets 
  58. midstream that contain sequences that will produce "garbage" 
  59. on the printer. 
  60.      I have had problems with the Queue Manager window
  61. hanging after performing queue hold-release and job hold-
  62. release-cancel operations.  I don't know if it is due to a 
  63. shortage of space on the spool disk, problems in printer 
  64. code page switching or what.  If the window does hang, files 
  65. being sent to the spooler will be accepted, but no output 
  66. will go to the printer.  This problem has occurred with and 
  67. without the monitor registered.  Rebooting after all files 
  68. needing to be printed have been sent to the spooler will 
  69. bring the window back with the previously sent files queued 
  70. for printing. 
  71.      At risk of great embarrassment, the source code has 
  72. been included.  Being a novice programmer, I would greatly 
  73. appreciate any help-comments-corrections concerning the 
  74. design and coding job. 
  75.  
  76.  
  77.