home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / print / setprin.zip / SETPRN.DOC next >
Text File  |  1993-05-26  |  23KB  |  526 lines

  1.  
  2.  
  3.  
  4.                                   SET PRiNter
  5.                                   Version 3.1
  6.                                 Copyright 1993
  7.                          Castle Oaks Computer Services
  8.                              Post Office Box 36082
  9.                           Indianapolis, IN 46236-0082
  10.   
  11.   SET PRINTER is a shareware utility that allows you to set several printer 
  12.   options through software instead of setting them through front panel or dip 
  13.   switches. If you find this program useful, you should send in a registra-
  14.   tion fee of $10 to Castle Oaks. When you register, you will be sent the 
  15.   latest version of SET PRINTER and some initialization files for various 
  16.   printers. Registered users are informed of any upgrades to this program and 
  17.   other programs offered by Castle Oaks.
  18.   
  19.   Most printers offer a variety of options that a user can select by manually 
  20.   setting switches or by imbedding commands in a file that is to be printed. 
  21.   SET PRINTER offers a third alternative. You can set several of your printer 
  22.   options from this program and they will stay in effect until your printer 
  23.   receives other commands or until you turn off the printer.
  24.   
  25.   This utility is most useful for when you are going to print a file by using 
  26.   the PRINT or COPY or PRinT SCreen command of DOS, or when you use some 
  27.   application that sends output to the printer without sending printer com-
  28.   mands. For example, sometimes I want to make a printout that is double or 
  29.   triple spaced so that I can write on the output between the printed lines. 
  30.   To do so, you execute SETPRN and set the lines per inch to 2 or 3; then 
  31.   exit and make your printout. You probably CANNOT use it with a word proces-
  32.   sor, since most word processors have special drivers that control your 
  33.   printer.
  34.   
  35.   SET PRINTER contains a setup option that allows you to customize it for 
  36.   your particular printer. Your custom setup can be stored in an initializa-
  37.   tion file so that it will be automatically loaded each time you use the 
  38.   program. In fact, you can have initialization files for more than one 
  39.   printer. This will be described later.
  40.   
  41.   The default settings for SET PRINTER are for use with an Epson LQ-2500 
  42.   printer and any printer that has compatible commands (e.g Panasonic 1124.) 
  43.   When the program is initiated by entering SETPRN from the command line (or 
  44.   by using a DOS icon in Windows), the following main menu will appear:
  45.   
  46.        Parameters now set for - LQ-2500
  47.   
  48.        0 Set draft or letter quality
  49.        1 Select font
  50.        2 Set pitch
  51.        3 Set enhancements
  52.        4 Set lines per inch
  53.        5 Set specials
  54.        6 Print test page
  55.        7 Initialize printer
  56.        8 Set up for a different printer
  57.        9 End program
  58.        ?
  59.  
  60.   
  61.   Also, the program will send an initialization command to your printer to 
  62.   choose its default settings. Therefore, your printer should be turned on 
  63.   and on-line before starting SET PRINTER.
  64.   
  65.   Each of the above options will be described in detail. However, option 8 
  66.   will be discussed last because it is very extensive and you may not need to 
  67.   refer to it at all.
  68.   
  69.   0. Most printers provide a draft and letter quality (or near letter quali-
  70.   ty) mode. Option 1 allows you to select a command sequence to tell the 
  71.   printer which mode to use.
  72.   
  73.   1. When you select option 1, the following (or similar) screen will appear:
  74.   
  75.        Present font is (name of current font or 'UNKNOWN')
  76.        Select one of the following:
  77.   
  78.        a Bold PS
  79.        b Sans Serif
  80.        c Courier
  81.        d Prestige
  82.        e Script
  83.        f Tiny OFF
  84.        g Tiny ON
  85.        h Spare
  86.        i Spare
  87.        j Spare
  88.        k Spare
  89.        l Spare
  90.        m Spare
  91.        n Spare
  92.   
  93.        Any other, causes a return to the main menu. ?
  94.   
  95.   By selecting one of the above options, the program will send the appro-
  96.   priate command to your printer to set that font. In this example, the tiny 
  97.   font requires both an OFF and ON option. These fonts are usually meaning-
  98.   less if the printer is in draft mode.
  99.   
  100.   (Note: If your printer does not provide the same fonts, or if you want the 
  101.   menu to display different names, or in a different order, you can customize 
  102.   via the setup option. This customizing is possible for all of the following 
  103.   menus.)
  104.  
  105.  
  106.   2. When you select option 2, the following (or similar) screen will appear:
  107.   
  108.        Present pitch is (name of current pitch or "UNKNOWN')
  109.        Select one of the following:
  110.   
  111.        a Pica
  112.        b Elite
  113.        c Micron
  114.        d Comp. Pica
  115.        e Comp. Elite
  116.        f Prop. OFF
  117.        g Prop. ON
  118.        h Spare
  119.        i Spare
  120.        j Spare
  121.        k Spare
  122.        l Spare
  123.        m Spare
  124.        n Spare
  125.   
  126.        Any other, causes a return to the main menu. ?
  127.   
  128.   Each of these options will send the appropriate command to your printer to 
  129.   set the desired pitch. In the above example, an OFF and ON option is re-
  130.   quired for proportional spacing. Note: Proportional may not be meaningful 
  131.   if the printer is in draft mode.
  132.   
  133.   3. Option 3 provides a method to select one or more special print enhance-
  134.   ments. When selected, the following screen appears:
  135.   
  136.   
  137.        Enhancements - most recent chosen was: (name or UNKNOWN)
  138.        Select one of the following:
  139.   
  140.        a Emphasized OFF
  141.        b Emphasized ON
  142.        c Underline OFF
  143.        d Underline ON
  144.        e Italic OFF
  145.        f Italic ON
  146.        g Height SINGLE
  147.        h Height DOUBLE
  148.        i Width SINGLE
  149.        j Width DOUBLE
  150.        k Spare
  151.        l Spare
  152.        m Spare
  153.        n Spare
  154.   
  155.        Any other, causes a return to the main menu. ?
  156.   
  157.   Note that in the enhancements group, separate options are required for OFF 
  158.   and ON commands. (Some printers allow you to use some enhancements in 
  159.   combinations and others do not.)
  160.  
  161.  
  162.   4. This option selects the vertical spacing of the printer. When you choose 
  163.   option 4, the following screen appears:
  164.   
  165.        Lines per inch is now (one of the descriptions below or 'UNKNOWN')
  166.        Select one of the following:
  167.   
  168.        a Two
  169.        b Three
  170.        c Four
  171.        d Five
  172.        e Six
  173.        f Seven + half
  174.        g Eight
  175.        h Nine
  176.        i Spare
  177.        j Spare
  178.        k Spare
  179.        l Spare
  180.        m Spare
  181.        n Spare
  182.   
  183.        Any other, causes a return to the main menu. ?
  184.   
  185.   Choosing one of the above options will send the appropriate command to the 
  186.   printer to select the desired vertical line spacing.
  187.   
  188.   5. Although options 1 through 4 provide spares for functions of your choos-
  189.   ing, you may need even more spares and/or you may prefer not to put func-
  190.   tions into menus 1 through 4 that are not related to those categories. 
  191.   Option 5 is provided with 14 spares for your use. If, for example, you have 
  192.   a color printer you might put the commands for colors in this sub-menu.
  193.   
  194.   6. After selecting some of the above options, you may want to run a test. 
  195.   This option gives you a choice of three options. The following screen 
  196.   appears:
  197.   
  198.        Select one of the following:
  199.        a Print short test; (10 lines, no form feed)
  200.        b Print full test; (55lines, form feed)
  201.        c Print a file
  202.   
  203.   If you choose the short test, 10 lines will be printed followed by a blank 
  204.   line. If you choose the full test, 55 lines will be printed followed by a 
  205.   form feed. If you choose 'c', you can print any ASCII file you desire. When 
  206.   you choose option 'c', the following screen is displayed:
  207.   
  208.        Enter name of file to print
  209.        (Include drive and/or directory, if needed)
  210.   
  211.   Ifyou print a file while running SET PRINTER, the file may contain imbedded 
  212.   printer commands. A printer command consists of a lead-in character, a 
  213.   tilde (~), followed by a main menu option number and a sub-menu letter (if 
  214.   needed.) Thus, to set the printer to draft mode, the command is:
  215.   
  216.   ~0d
  217.  
  218.   
  219.   To set it back to letter quality, the command is:
  220.   
  221.   ~0L (Actually, any letter other than 'd' is OK)
  222.   
  223.   The sub-menu letter may be either upper or lower case. Only the main menu 
  224.   options, 0, 1, 2, 3, 4, 5, and 7 may be used in embedded commands. In the 
  225.   case of option 7, no sub-menu letter is required. If you need to print a 
  226.   tilde, use two consecutive tildes. The first will be ignored and the second 
  227.   will be printed.
  228.   
  229.   The file, TEST.FIL, has been included for use to test the use of imbedded 
  230.   printer commands. Print it using PRINT or COPY, then print it from within 
  231.   SET PRINTER. Compare the two printouts to see how the imbedded commands 
  232.   work.
  233.   
  234.   7. This option will send an initialization command to the printer and then 
  235.   return to the main menu. If, during set up, you have entered a new initial-
  236.   ization command, you should then select option 7 to reset the printer.
  237.   
  238.   9. Option 9 terminates SET PRINTER and returns the system to the DOS prompt 
  239.   (or to Windows.)
  240.   
  241.   ---------------------------------------------------------------------------
  242.  
  243.                                     SET UP
  244.                                   (Option 8)
  245.   
  246.   Although the setup option may lead to a lengthy process, a user will usual-
  247.   ly only need to do it once for each printer.
  248.   
  249.   The first thing you must do is to study your printer's manual. Look up the 
  250.   various options discussed in these pages and write them down for easy 
  251.   reference. Remember, your printer may not provide all of the options de-
  252.   scribed earlier and/or it may have options not included in SET PRINTER. 
  253.   This discussion will deal with both of these possibilities.
  254.   
  255.   When you select option 8 from the main menu, the following set up screen 
  256.   appears:
  257.   
  258.        0 Draft and LQ sequences
  259.        1 Font sequences
  260.        2 Pitch sequences
  261.        3 Enhancements sequences
  262.        4 Lines per inch sequences
  263.        5 Special functions
  264.        6 Change printer name
  265.        7 Printer initialization sequence
  266.        8 Write changes to file, and exit setup
  267.        9 Exit setup without saving changes to file
  268.   
  269.        Any other causes a return to the main menu
  270.   
  271.        ?
  272.   
  273.   (Note that screen colors are changed to remind you that you are in set up 
  274.   mode.)
  275.   
  276.   0. This option asks for the command to put the printer in draft mode. The 
  277.   following screen will appear:
  278.   
  279.        Present draft command is:
  280.        In decimal:
  281.        ddd ddd ddd (Will display current command for draft mode.)
  282.        In ASCII (If less than 32, mnemonic is shown in dim letters.):
  283.        xxxxxx      (Will display current command in ASCII)
  284.        If you want to make a change, enter the new sequence
  285.        Use decimal numbers (or actual characters, see documentation)
  286.        Separate decimal numbers with one or more spaces (none for ASCII)
  287.        If you do not want to make a change, press ENTER
  288.        If your printer does not support this option, you
  289.        must still enter something such as a single zero.
  290.  
  291.  
  292.   After you enter the draft command, the following screen will appear:
  293.   
  294.        Present LQ command is:
  295.        In decimal:
  296.        DDD DDD DDD (Will display current command for letter quality mode.)
  297.        In ASCII (If less than 32, mnemonic is shown in dim letters.):
  298.        xxxxxx      (Will display current command in ASCII)
  299.        If you want to make a change, enter the new sequence
  300.        Use decimal numbers (or actual characters, see documentation)
  301.        Separate the numbers with one or more spaces
  302.        If you do not want to make a change, press ENTER
  303.        If your printer does not support this option, you
  304.        must still enter something such as a single zero.
  305.   
  306.   After you enter the command for letter quality mode, the program will 
  307.   return to the set up menu.
  308.   
  309.   ----------------- NOTE ABOUT ENTERING COMMAND CHARACTERS ------------------
  310.   
  311.   You may use the digits 0 through 9 to form each command character followed 
  312.   by a space; or you may use the ASCII character for each command character; 
  313.   or you may use the decimal value(s) of some of the command character(s) 
  314.   followed by ASCII characters. Your printer manual will probably show each 
  315.   command as ASCII characters, their decimal equivalents, and their hexideci-
  316.   mal equivalents. Your manual might show for the draft sequence the follow-
  317.   ing:
  318.   
  319.             ESC x   0
  320.        Dec  27  120 48
  321.        Hex  1B  78  30
  322.   
  323.   You may enter: 27 120 48
  324.   
  325.              or: 27 x0
  326.   
  327.              or: ^[x0
  328.   
  329.   In the last example, ^[ means hold down the control key and press [. This 
  330.   will enter an ESCAPE character. Once you have entered a non-numeric charac-
  331.   ter, the rest of the command must be in ASCII characters. When entering 
  332.   characters as decimal values, they may be 1, 2, or 3 digit numbers, and 
  333.   each value must be separated from the next value by one or more spaces. (A 
  334.   command sequence for this option and for all others must not exceed 40 
  335.   characters.) If an option is not available for your printer, you must still 
  336.   enter a value. If you enter a single zero as a dummy value it will not be 
  337.   sent to the printer when you select the corresponding option. You could 
  338.   leave the default sequence in place but you should not use that option 
  339.   because the command might put your printer into a state that you do not 
  340.   want.
  341.   
  342.   ---------------------------------------------------------------------------
  343.  
  344.  
  345.   1. Option 1 allows you to set up the names of the fonts available and their 
  346.   corresponding commands. You may have up to 14 different fonts. When you 
  347.   select one of the options, a screen similar to the following will appear:
  348.   
  349.        Present name of font N is:
  350.   
  351.        (Name currently assigned to font N.)
  352.   
  353.        Enter a new name
  354.        (To leave unchanged; press ENTER only)
  355.   
  356.   (Note: N will be one of the values a through n. The maximum length that you 
  357.   may enter for this option and each other option is 20 characters. After 
  358.   entering a new name (or accepting the old one), the next screen is dis-
  359.   played:
  360.   
  361.        Font N command is:
  362.        In decimal:
  363.        ddd ddd ddd (Command to select font N.)
  364.        In ASCII (If less than 32, mnemonic is shown in dim letters.):
  365.        xxxxxx      (Will display current command in ASCII)
  366.        If you want to make a change, enter the new sequence
  367.        Use decimal numbers (or actual characters, see documentation)
  368.        Separate decimal numbers with one or more spaces (none for ASCII)
  369.        If you do not want to make a change, press ENTER
  370.        If your printer does not support this option, you
  371.        must still enter something such as a single zero.
  372.   
  373.   
  374.   Note that in the font (also pitch, lines per inch, and specials) group not 
  375.   all of the 14 options are used. The unused ones are designated as spares. 
  376.   You can use these spares for anything you wish. Some examples of the use of 
  377.   spares will be given later. If you do not have a particular font, you might 
  378.   enter 'N/A' or 'Unavailable' or 'Spare' as the name and zero as the com-
  379.   mand.
  380.   
  381.   After entering the information about a particular font, the program again 
  382.   displays the font names. When you are done changing fonts, press any char-
  383.   acter other than a through n and the program will return to the set up 
  384.   menu.
  385.   
  386.   2. Option 2 allows you to set up for 14 different pitch commands. These 
  387.   commands determine how many characters per inch will be printed. Changing 
  388.   the pitch menu and commands is similar to that described for fonts.
  389.   
  390.   3. Option 3 allows you to have 14 enhancements commands. (Some enhancements 
  391.   may require two menu options.) The default ones are: emphasized, underline, 
  392.   italic, height, and width. You may have different ones; or, you may want to 
  393.   use these for other features. Some printers do not allow all combinations 
  394.   of enhancements. Refer to your printer manual to determine any limitations. 
  395.   For example, your printer may not allow you to combine emphasized with 
  396.   draft mode. Changing the enhancements menu and commands is similar to that 
  397.   described for fonts.
  398.  
  399.  
  400.   4. Option 4 allows you to provide for up to 14 different commands to set 
  401.   vertical spacing in lines per inch. Changing the lines per inch menu and 
  402.   commands is similar to that described for fonts. Your printer may provide 
  403.   two or more ways to select lines per inch. You must choose the one(s) that 
  404.   is suitable to get what you want. One printer lets you choose vertical 
  405.   spacing in 72nds of an inch and also in 216ths of an inch. Another printer 
  406.   offers spacing in 60ths of an inch, 120ths of an inch, and 360ths of an 
  407.   inch. 
  408.   
  409.   5. Option 5 allows you to have up to 14 different special commands. The set 
  410.   up procedure is similar to that described for fonts.
  411.   
  412.   6. When you select option 6, the following screen appears:
  413.   
  414.        Current printer name is: 
  415.   
  416.        (name of printer)
  417.   
  418.        Enter a new name
  419.        (To leave unchanged; press ENTER only)
  420.   
  421.   You can enter a name up to 30 characters in length.
  422.   
  423.   7. This option allows you to enter a new initialization command. When you 
  424.   select this option, the following screen appears:
  425.   
  426.        Present initialization sequence is:
  427.        In decimal:
  428.        027 064 (This example shows the default initialization.)
  429.        In ASCII (If less than 32, mnemonic is shown in dim letters.):
  430.        ESC@
  431.        If you want to make a change, enter the new sequence
  432.        Use decimal numbers (or actual characters, see documentation)
  433.        Separate decimal numbers with one or more spaces (none for ASCII)
  434.        If you do not want to make a change, press ENTER
  435.        If your printer does not support this option,
  436.        you must still enter something such as a single zero.
  437.   
  438.   8. After changing all of the options that you want to change, you may save 
  439.   these settings by using option 8. It will create (or overwrite) a file 
  440.   named SETPRN.INI in the currently logged directory. The next time you use 
  441.   SET PRINTER, it will load the commands from SETPRN.INI, if present on the 
  442.   currently logged directory. By doing your set up in different directories, 
  443.   you may have initialization files (SETPRN.INI) for various printers.
  444.   
  445.   9. Option 9 allows you to exit set up without saving the changes. You may 
  446.   just want to abort set up; or you may use set up to change one (or more) 
  447.   options, leave set up, use the new feature to command the printer, and then 
  448.   exit the program.
  449.   
  450.   Earlier, I mentioned that your printer may (probably certainly) have other 
  451.   features that you would like for SET PRINTER to use. You may include some 
  452.   of these by using the spares that are provided. If you use all of the 
  453.   spares, then it may be necessary to sacrifice some other options that you 
  454.   may not need. Although the spares occur in five different groups, there is 
  455.  
  456.  
  457.   no requirement that the function you implement be in a particular group. 
  458.   You must remember the group in which you have placed each special command. 
  459.   For example, you may want to have commands to disable/enable the paper-out 
  460.   sensor. You can use one spare for a 'Paper-out OFF' and another for 'Paper-
  461.   out ON'. You might substitute a form feed or a line feed for one of the 
  462.   other spares. Other features you might implement are left and right mar-
  463.   gins, skip perforation, unidirectional printing, reverse feed the paper, 
  464.   etc. 
  465.   
  466.   Under option 8, I mentioned that you might put initialization files for 
  467.   different printers in different directories. You might also have initiali-
  468.   zation files stored under different names in the same directory. In the 
  469.   latter case, you have to copy the needed intialization file to SETPRN.INI 
  470.   before executing SETPRN. For example, you might save the LQ-2500 initiali-
  471.   zation values in SETPRN.INI and then rename it LQ-2500.INI. Then run SETPRN 
  472.   again changing the commands to those needed for an LX-800. Save these 
  473.   commands in SETPRN.INI and then rename the file to LX-800.INI. At a later 
  474.   session before using SETPRN, COPY either LQ-2500.INI or LX-800.INI to 
  475.   SETPRN.INI.
  476.   
  477.   When a person has more than one printer on a computer, he usually has them 
  478.   wired through a switch box. However, some people have multiple printers 
  479.   connected to their computer through separate ports. They can redirect their 
  480.   printer output by using the MODE command. However, some people prefer to 
  481.   send their output to the appropriate port. For example, let's say that you 
  482.   have a laser printer connected to LPT1 and a dot matrix printer connected 
  483.   to COM1. Furthermore, the computer's default is that LPT1 is the PRN de-
  484.   vice. If you want to use the dot matrix printer, you can use the MODE 
  485.   command to redirect the print output to COM1 or you could print a file by 
  486.   using the copy command:
  487.   
  488.   COPY <file name> COM1:
  489.   
  490.   SETPRN is compatible with the latter usage, SET PRiNter provides the option 
  491.   of including a device name on the command line. Thus:
  492.   
  493.   SETPRN COM1
  494.   
  495.   will send output from SETPRN to the COM1 port instead of the default which 
  496.   is PRN. (Note, do not include the colon when entering a device name.) This 
  497.   provides yet another option, the device you may specify can be a file name. 
  498.   You might initiate SETPRN with the command line:
  499.   
  500.   SETPRN DBLESP.DRF
  501.   
  502.   Then while in SETPRN, set the number of lines per inch to 3 and send the 
  503.   command for draft mode. After exiting SETPRN, the file DBLSP.DRF will 
  504.   contain the commands to set the printer for double spacing vertically and 
  505.   put it in draft mode. Then, any time you want to set your printer to that 
  506.   combination, just:
  507.   
  508.   COPY DBLESP.DRF PRN:
  509.   
  510.   Thus, you could have several different files that set your printer without 
  511.   using SETPRN each time.
  512.   The above capability (sending output to a different device or file), 
  513.   provides a way of avoiding a possible problem. When you execute SETPRN, it 
  514.   sends an initialization command to the printer. This will be either the 
  515.   default command (ESC @) or the initialization command that you have saved 
  516.   in an initialization file. Suppose that you want to set up for a new 
  517.   printer and you don't want SETPRN to send an initialization sequence to the 
  518.   printer. If you start the program with the command line:
  519.  
  520.   SETPRN NUL
  521.  
  522.   the program will send all output to the NULL device. You may then proceed 
  523.   with the set up (including a new initialization sequence.) After saving the 
  524.   commands in SETPRN.INI, exit the program. The next time you run SETPRN, the 
  525.   new initialization command from SETPRN.INI will be sent to the printer.
  526.