home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / TEXT / TM12_TIP.ZIP / 573.TXT < prev    next >
Text File  |  1991-12-18  |  3KB  |  68 lines

  1. Q:   How can I write a Printer Driver that will send my Laser Printer
  2.      the Setup and Rest commands it needs to print Envelopes?
  3.  
  4.  
  5. A:   [This is the Driver called 'LASER ENV' that is shipped with
  6.      V12.2]
  7.  
  8.      Go to the Add User Defined Printer screen  (F6,S,A keystrokes)
  9.      and add a new printer driver.  Fill in the fields at the top with
  10.      the following information:
  11.  
  12.           PRINTER ID:     Laser ENV
  13.  
  14.           DESCRIPTION:    Envelopes on a HP Laser Compatible Printer
  15.  
  16.           PRINTER TYPE:   P or S 
  17.  
  18.           SETUP CONTROL:  chr(27)+'&l1O'+chr(27)+'&l3H'
  19.  
  20.           RESET CONTROL:  chr(27)+'E'+chr(27)+'&l1H'
  21.  
  22.  
  23.      Since printer control codes are case sensitive, it is important
  24.      that the letter following the ampersand (the &) is a lower case
  25.      L.  The next character is a number (either a 1 or a 3).  The
  26.      character after the number must be an uppercase letter (either
  27.      an O or an H).
  28.  
  29.      SETUP CONTROL, (What it does)
  30.      -----------------------------
  31.           The Setup Control sends the control commands in this field
  32.      to the printer each time this printer driver is selected.
  33.  
  34.           The `chr(27)'is the command that tells your printer that the
  35.      next sequence of letters and numbers is going to be a printer
  36.      control command (in your printer manual it is shown as `ESC'). 
  37.      
  38.           The '&l1O' places the printer in landscape mode (causing it
  39.      to print sideways).
  40.  
  41.           The '&l3H' tells the printer to pull from the manual feed
  42.      tray and to wait until the manual feed button on the printer is
  43.      pressed.  You may use different commands here depending on what
  44.      your printer is capable of.  For instance, if your printer has
  45.      an envelop tray you could replace this command with '&l6H' which
  46.      would cause it to automatically pull envelopes from the envelope
  47.      tray.  Please consult your printer manual to see what features
  48.      are available with your printer.
  49.  
  50.      RESET CONTROL
  51.      -------------
  52.  
  53.           These commands are given to the printer whenever you select
  54.      another printer driver (deselecting this one) or when you exit
  55.      TeleMagic.
  56.  
  57.           The uppercase 'E' resets your printer back to it's power-on
  58.      defaults and the '&l1H' forces it back to portrait printing
  59.      (printing in the normal direction).
  60.  
  61. (End fo 573)
  62.  
  63. NEW 10-17-91 MLM
  64. Indexed Under:  E  Envelopes, Envelopes with Printer Driver in V12
  65.                    Envelopes, Laser ENV Printer Driver in V12
  66.                 L  LASER ENV Printer Driver in V12                 P ì
  67. Printer, Using Printer Driver "LASER ENV" in V12
  68.