{
{                         PRINT REDIRECTION THROUGH DOS
{                         =============================

{  LPR Redirector Support
{  ======================

       Use LPRINT.EXE and RFCLPRNT.EXE to automatically redirect print
       jobs from DOS or Windows(R) to a printer attached to a remote
       server.  (There are additional setup requirements to use the print
       redirectors in Windows.)

{    Redirecting Print Jobs
{    ----------------------

       LANtastic for TCP/IP allows you to print files on printers attached
       to remote hosts. The remote host is the LPR print server.  This
       server must have an LPR-based daemon such as LPD running.

       Before you can redirect print jobs, you must set up the remote host
       as an LPR print server.

       When you set up the local PC client to redirect print jobs, you are
       telling the LPR print client to send print jobs to the printer
       attached to a remote server.

       Prepare the client for automatic redirection by performing the
       following steps:

       1. Start the print redirector agent. The agent you use depends on
          whether the print server complies fully with RFC 1179 or not.
          (For more information about RFCs, refer to your LANtastic for
          TCP/IP manual.)

       2. Connect to the remote printer using LPRQ.

       3. If you plan to print from an application in Windows, you need to
          install a network driver using the Windows setup program. Refer
          to your LANtastic for TCP/IP manual.

       The first two steps are described below in more detail.  For more
       information about starting the print server on a remote host
       running DOS, refer to your LANtastic for TCP/IP manual.

{    Starting the Print Redirector
{    -----------------------------

       Start one of the redirector agents on the print client. LANtastic
       for TCP/IP offers the following two redirector agents. (You can
       type the command to start the redirector agent at the DOS prompt,
       or you can enter the command in the TCPSTART.BAT so the agent
       starts immediately when you boot the local PC.)  The redirector
       agent you use depends on the type of print server running on the
       remote host:

           o If your LPR print server complies with RFC 1179 (LPRS is
             fully RFC 1179 compliant), start the RFCLPRNT print
             redirector agent. To start the RFCLPRNT print redirector
             agent, go to the directory in which you installed LANtastic
             for TCP/IP and type:

                   rfclprnt

           o If the LPR print server does not comply fully with RFC
             1179 (or if you are not sure if the server complies with this
             RFC), use the LPRINT print redirector agent. LPR servers that
             are not fully RFC 1179 compliant are LPR print servers for
             UNIX and VMS. To start the LPRINT print redirector agent, go
             to the directory in which you installed LANtastic for TCP/IP
             and type:

                   lprint

       {Note...}     You cannot start RFCLPRNT and LPRINT from Windows or
                   from the Windows DOS prompt.

{    Connecting to the Remote Printer
{    --------------------------------

       This section describes how to connect to a remote printer from your
       local PC. You must connect to the printer before you can redirect a
       print job through a print server. To specify a remote printer from
       an LPR client, type the following command (you can type the command
       to connect to the remote printer at the DOS prompt, or you can
       enter the command in the AUTOEXEC.BAT file so you are connected as
       soon as you boot the local PC):

           lprq dos_printer server[:printer] -Ooption [-Ttimeout] [-Ffont]

       {dos_printer}    is LPT1, LPT2 or LPT3.

       {server}         is the Internet address or name of the server.

       {:printer}       is the name of the remote printer that
                      corresponds to the specified printer port. The
                      default entry is LP.

       {-Ooption}       is an entry after the {-O} flag of one of the
                      options listed in Table 1.

       {-Ttimeout}      is the time in clicks between the printing of
                      separate files (18.2 clicks equal one second). The
                      range for time is 1 to 2184 clicks (up to 2
                      minutes); the default is 182 clicks (10 seconds).

       {-Ffont}         is an entry after the {-F} flag of one of the
                      options listed in Table 3. Note that the DOS LPR
                      Server supports only the default of 1 or Roman
                      type.
 
              Table 1. {O} Option entries for print servers
    Ŀ
     {O} Option        Function                                       
    Ĵ
         f         Prints plain ASCII text files (the default).     
    Ĵ
         l         Prints files to a non-PostScript printer from    
                   your DOS-based or Windows applications.          
    Ĵ
         s         Prints PostScript files to a PostScript printer  
                   from applications or from the command line.      
    

       The options listed in the table above are supported for most LPT
       servers, such as DOS, UNIX and VMS. A number of specific entries
       after the {-O} flag are available only on a UNIX LPR print server.
       Some of these entries are mentioned in Table 2.

       The font entries after the {-F} flag can be used only with a UNIX
       LPR print server. They are explained in "Two Printer Options for
       UNIX Servers" later in this section.

       For example, to connect to a printer named {hpljet} at the server
       {thor} through LPT1, type:

              lprq lpt1 thor:hpljet -Os

       In this example, the {-Os} option specifies Postscript files.

       {Note...}     To specify a remote printer on an LPR print server
                   from Windows, use the LPRQ command from the DOS box.

{    Two Printer Options for UNIX Servers
{    ------------------------------------

       There are additional {-O} options to change file characteristics
       and {-F} options to change the font if the remote LPR print server
       is a UNIX system.

       These options are known to work with most UNIX servers. Check with
       the system administrator for other servers, such as VMS, to see if
       these or similar options can be used.

       The {-O} options are shown in Table 2.

         {Table 2. Changing file characteristics for UNIX servers}
     Ŀ
      {-O} Entry        Description                               
     Ĵ
           d          dvi file                                  
     Ĵ
           f          ASCII text file (default)                 
     Ĵ
           g          Plot file                                 
     Ĵ
           l          Text file with control characters         
     Ĵ
           n          ditroff file                              
     Ĵ
           p          Text file with print prn                  
     Ĵ
           s          PostScript files                          
     Ĵ
           t          troff file                                
     Ĵ
           v          Plain raster file                         
     

       The following example shows how to set these file characteristics:

              lprq lpt1 thor:hpljet -Ot

       In this example, {-Ot} tells the printer to print only troff files.
       If you are working with troff files, you can use an {-F} option to
       specify troff font options. Refer to Table 3.

                 {Table 3. troff font options}
     Ŀ
        {-F} entry        Font                        
     Ĵ
           1            Roman                       
     Ĵ
           2            Italic                      
     Ĵ
           3            Bold                        
     Ĵ
           4            Special font                
     

       For example, to set the font characteristics of troff files through
       the same printer as in the previous example, type:

              C:\> lprq lpt1 obelix:hpljet -Ot -F1

       In this example, {-F1} tells the printer to print troff files using
       the Roman font.

{    Printing Files with the Redirector Set Up
{    -----------------------------------------

       If you are an LPR print client and you want to print to a
       redirected printer through a server, make sure the following
       conditions have been met:

           o The remote server is an LPR print server.

           o The local PC is set up to automatically redirect print jobs.
             Refer to the section "Redirecting Print Jobs" earlier in this
             section.

       Once you meet these requirements, the printing commands tell the
       local PC to redirect the file to the printer attached to the remote
       host.

       {Note...}     If a PC is an LPR server, do not try to print
                   directly to the local printer. This file will bypass
                   the print queue and may corrupt the printout of other
                   files in the queue. Use the LPT port redirected through
                   LPRINT instead.

       You can use any of the following three commands to print a file to
       a redirected printer.

       Method 1:

              copy filename printer

       where filename is the name of the file you want to print, and
       printer is one of three printer port designations known to DOS:
       LPT1, LPT2 or LPT3.

       For example:

              C:\LANTCP> copy sect1.doc lpt1

       Method 2:

              print filename printer

       where filename is the name of the file you want to print, and
       printer is one of three printer port designations known to DOS:
       LPT1, LPT2 or LPT3.

       For example:

              C:\LANTCP> print sect1.doc lpt1

       The DOS print program must be started for you to use the print
       command.  If the program is not started, type print at the DOS
       prompt to start it. This must be done before you start the
       redirector agents LPRINT or RFCLPRNT.

       Method 3:

       Use the print command from the application you are using. An
       example is printing a file in WordPerfect(R) for DOS by selecting
       Print.

{  Printing from DOS and Windows Applications
{  ==========================================

       You can print directly from a DOS or Windows application to an LPR
       server.  Make sure that your application is configured for the
       appropriate printer.  Refer to the documentation shipped with the
       application for more information. After the application is
       configured properly, you can print directly as though you were
       printing to a local printer.


