home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / inc&ad2.0 / text_autodocs / printer.doc < prev    next >
Text File  |  1992-09-01  |  40KB  |  1,036 lines

  1. TABLE OF CONTENTS
  2.  
  3. printer.device/CMD_FLUSH
  4. printer.device/CMD_INVALID
  5. printer.device/CMD_RESET
  6. printer.device/CMD_START
  7. printer.device/CMD_STOP
  8. printer.device/CMD_WRITE
  9. printer.device/PRD_DUMPRPORT
  10. printer.device/PRD_PRTCOMMAND
  11. printer.device/PRD_QUERY
  12. printer.device/PRD_RAWWRITE
  13. printer.device/PWrite
  14. printer.device/CMD_FLUSH                             printer.device/CMD_FLUSH
  15.  
  16.    NAME
  17.     CMD_FLUSH -- abort all I/O requests (immediate)
  18.  
  19.    FUNCTION
  20.     CMD_FLUSH aborts all stopped I/O at the unit.
  21.  
  22.    IO REQUEST
  23.     io_Message    mn_ReplyPort set if quick I/O is not possible
  24.     io_Device    preset by the call to OpenDevice
  25.     io_Command    CMD_FLUSH
  26.     io_Flags    IOB_QUICK set if quick I/O is possible
  27.  
  28. printer.device/CMD_INVALID                         printer.device/CMD_INVALID
  29.  
  30.    NAME
  31.     CMD_INVALID -- invalid command
  32.  
  33.    FUNCTION
  34.     CMD_INVALID is always an invalid command, and sets the device
  35.     error appropriately.
  36.  
  37.    IO REQUEST
  38.     io_Message    mn_ReplyPort set if quick I/O is not possible
  39.     io_Command    CMD_INVALID
  40.     io_Flags    IOB_QUICK set if quick I/O is possible
  41.  
  42. printer.device/CMD_RESET                             printer.device/CMD_RESET
  43.  
  44.    NAME
  45.     CMD_RESET -- reset the printer
  46.  
  47.    FUNCTION
  48.     CMD_RESET resets the printer device without destroying handles
  49.     to the open device.
  50.  
  51.    IO REQUEST
  52.     io_Message    mn_ReplyPort set if quick I/O is not possible
  53.     io_Device    preset by the call to OpenDevice
  54.     io_Command    CMD_RESET
  55.     io_Flags    IOB_QUICK set if quick I/O is possible
  56.  
  57. printer.device/CMD_START                             printer.device/CMD_START
  58.  
  59.    NAME
  60.     CMD_START -- restart after stop (immediate)
  61.  
  62.    FUNCTION
  63.     CMD_START restarts the unit after a stop command.
  64.  
  65.    IO REQUEST
  66.     io_Message    mn_ReplyPort set if quick I/O is not possible
  67.     io_Device    preset by the call to OpenDevice
  68.     io_Command    CMD_START
  69.     io_Flags    IOB_QUICK set if quick I/O is possible
  70.  
  71. printer.device/CMD_STOP                               printer.device/CMD_STOP
  72.  
  73.    NAME
  74.     CMD_STOP -- pause current and queued I/O requests (immediate)
  75.  
  76.    FUNCTION
  77.     CMD_STOP pauses all queued requests for the unit, and tries to
  78.     pause the current I/O request.  The only commands that will
  79.     be subsequently allowed to be performed are immediate I/O
  80.     requests, which include those to start, flush, and finish the
  81.     I/O after the stop command.
  82.  
  83.    IO REQUEST
  84.     io_Message    mn_ReplyPort set if quick I/O is not possible
  85.     io_Device    preset by the call to OpenDevice
  86.     io_Command    CMD_STOP
  87.     io_Flags    IOB_QUICK set if quick I/O is possible
  88.  
  89. printer.device/CMD_WRITE                             printer.device/CMD_WRITE
  90.  
  91.    NAME
  92.       CMD_WRITE -- send output to the printer
  93.  
  94.    FUNCTION
  95.       This function causes a buffer of characters to be written to the
  96.       current printer port (usually parallel or serial).  The number of
  97.       characters is specified in io_Length, unless -1 is used, in which
  98.       case output is sent until a 0x00 is encountered.
  99.  
  100.       The Printer device, like the Console device, maps ANSI X3.64 style
  101.       7-bit printer control codes to the control code set of the current
  102.       printer.  The ANSI codes supported can be found below.
  103.  
  104.    NOTES
  105.       Not all printers will support all functions.  In particular you may
  106.       not assume that the MARGINS or TABS can be set.  Close to half the
  107.       supported printers don't fully implement one or the other.  If you
  108.       want the features of margins or tabs you will need to fake it
  109.       internally by sending out spaces. 
  110.  
  111.       Note that the printer device may have already sent out a "set
  112.       margins" command to the printer.  If you are faking your own
  113.       margins, be sure to cancel the old ones first.  (use the "aCAM"
  114.       command)
  115.  
  116.       Defaults are set up so that if a normal AmigaDOS text file
  117.       is sent to PRT:, it has the greatest chance of working. 
  118.       (AmigaDOS text files are defined as follows:)
  119.               tabs            - every 8
  120.               CR (0x0D)       - moves to start of current line
  121.               LF (0x0A)       - moves to start of next line
  122.  
  123.    IO REQUEST
  124.        io_Message      mn_ReplyPort set
  125.        io_Device       preset by OpenDevice
  126.        io_Unit         preset by OpenDevice
  127.        io_Command      CMD_WRITE
  128.        io_Length       number of characters to process, or if -1,
  129.                        process until 0x00 encountered
  130.        io_Data         pointer to block of data to process
  131.  
  132.    RESULTS
  133.        io_Error : if CMD_WRITE succeeded, then io_Error will be zero.
  134.               Otherwise io_Error will be non-zero.
  135.  
  136.    SEE ALSO
  137.        printer.h, parallel.device, serial.device, Preferences
  138.  
  139.  
  140.    ANSI X3.64 style COMMANDS
  141.  
  142.  aRIS         ESCc            hard reset
  143.  aRIN         ESC#1           initialize to defaults
  144.  aIND         ESCD            true linefeed (lf)
  145.  aNEL         ESCE            return,lf
  146.  aRI          ESCM            reverse lf              *
  147.  
  148.  aSGR0        ESC[0m          normal character set
  149.  aSGR3        ESC[3m          italics on
  150.  aSGR23       ESC[23m         italics off
  151.  aSGR4        ESC[4m          underline on
  152.  aSGR24       ESC[24m         underline off
  153.  aSGR1        ESC[1m          boldface on
  154.  aSGR22       ESC[22m         boldface off
  155.  aSFC         SGR30-39        set foreground color
  156.  aSBC         SGR40-49        set background color
  157.  
  158.  aSHORP0      ESC[0w          normal pitch
  159.  aSHORP2      ESC[2w          elite on
  160.  aSHORP1      ESC[1w          elite off
  161.  aSHORP4      ESC[4w          condensed on
  162.  aSHORP3      ESC[3w          condensed off
  163.  aSHORP6      ESC[6w          enlarged on
  164.  aSHORP5      ESC[5w          enlarged off
  165.  
  166.  aDEN6        ESC[6"z         shadow print on
  167.  aDEN5        ESC[5"z         shadow print off
  168.  aDEN4        ESC[4"z         doublestrike on
  169.  aDEN3        ESC[3"z         doublestrike off
  170.  aDEN2        ESC[2"z         Near Letter Quality (NLQ) on
  171.  aDEN1        ESC[1"z         NLQ off
  172.  
  173.  aSUS2        ESC[2v          superscript on
  174.  aSUS1        ESC[1v          superscript off
  175.  aSUS4        ESC[4v          subscript on
  176.  aSUS3        ESC[3v          subscript off
  177.  aSUS0        ESC[0v          normalize the line      *
  178.  aPLU         ESCL            partial line up         *
  179.  aPLD         ESCK            partial line down       *
  180.  
  181.  aFNT0        ESC(B           US char set (default)   or Font 0
  182.  aFNT1        ESC(R           French char set         or Font 1
  183.  aFNT2        ESC(K           German char set         or Font 2
  184.  aFNT3        ESC(A           UK char set             or Font 3
  185.  aFNT4        ESC(E           Danish I char set       or Font 4
  186.  aFNT5        ESC(H           Sweden char set         or Font 5
  187.  aFNT6        ESC(Y           Italian char set        or Font 6
  188.  aFNT7        ESC(Z           Spanish char set        or Font 7
  189.  aFNT8        ESC(J           Japanese char set       or Font 8
  190.  aFNT9        ESC(6           Norweign char set       or Font 9
  191.  aFNT10       ESC(C           Danish II char set      or Font 10
  192.  
  193.  aPROP2       ESC[2p          proportional on         *
  194.  aPROP1       ESC[1p          proportional off        *
  195.  aPROP0       ESC[0p          proportional clear      *
  196.  aTSS         ESC[n E         set proportional offset *
  197.  aJFY5        ESC[5 F         auto left justify       *
  198.  aJFY7        ESC[7 F         auto right justify      *
  199.  aJFY6        ESC[6 F         auto full justify       *
  200.  aJFY0        ESC[0 F         auto justify off        *
  201.  aJFY3        ESC[3 F         letter space (justify)  *
  202.  aJFY1        ESC[1 F         word fill(auto center)  *
  203.  
  204.  aVERP0       ESC[0z          1/8" line spacing
  205.  aVERP1       ESC[1z          1/6" line spacing
  206.  aSLPP        ESC[nt          set form length n
  207.  aPERF        ESC[nq          set perforation skip to n lines (n>0)
  208.  aPERF0       ESC[0q          perforation skip off
  209.  
  210.  aLMS         ESC#9           Left margin set         *
  211.  aRMS         ESC#0           Right margin set        *
  212.  aTMS         ESC#8           Top margin set          *
  213.  aBMS         ESC#2           Bottom margin set       *
  214.  aSTBM        ESC[Pn1;Pn2r    set T&B margins         *
  215.  aSLRM        ESC[Pn1;Pn2s    set L&R margin          *
  216.  aCAM         ESC#3           Clear margins
  217.  
  218.  aHTS         ESCH            Set horiz tab           *
  219.  aVTS         ESCJ            Set vertical tabs       *
  220.  aTBC0        ESC[0g          Clr horiz tab           *
  221.  aTBC3        ESC[3g          Clear all h tab         *
  222.  aTBC1        ESC[1g          Clr vertical tabs       *
  223.  aTBC4        ESC[4g          Clr all v tabs          *
  224.  aTBCALL      ESC#4           Clr all h & v tabs      *
  225.  aTBSALL      ESC#5           Set default tabs (every 8)
  226.  
  227.  aEXTEND      ESC[Pn"x        Extended commands
  228.                               This is a mechanism for printer drivers to
  229.                               support extra commands which can be called
  230.                               by ANSI control sequences
  231.  aRAW         ESC[Pn"r        Next 'Pn' chars are raw (ie. they are not
  232.                               parsed by the printer device, instead they
  233.                               are sent directly to the printer.
  234.  
  235.  
  236.  (*) indicates that sending this command may cause unexpected results
  237.      on a large number of printers.
  238.  
  239. printer.device/PRD_DUMPRPORT                     printer.device/PRD_DUMPRPORT
  240.  
  241.    NAME
  242.     PRD_DUMPRPORT -- dump the specified RastPort to a graphics printer
  243.                                  
  244.    FUNCTION                             
  245.     Print a rendition of the supplied RastPort, using the supplied
  246.     ColorMap, position and scaling information, as specified in
  247.     the printer preferences.
  248.                                  
  249.    IO REQUEST
  250.     io_Message    mn_ReplyPort set if quick I/O is not possible.
  251.     io_Command    PRD_DUMPRPORT.
  252.     io_Flags    IOB_QUICK set if quick I/O is possible.
  253.     io_RastPort    ptr to a RastPort.
  254.     io_ColorMap    ptr to a ColorMap.
  255.     io_Modes    the 'modes' flag from a ViewPort structure,
  256.             (the upper word is reserved and should be zero).
  257.  
  258.             If you are running under version 36, or greater
  259.             of graphics.library, it is recommended that
  260.             you fill in "io_Modes" with the ULONG (32-bit)
  261.             value returned from calling:
  262.  
  263.             ULONG ModeID = GetVPModeID(struct ViewPort *);
  264.  
  265.             Doing so provides for upwards compatability with
  266.             the new display modes available under V36
  267.             (example: aspect ratio calculations for new
  268.             display modes).
  269.  
  270.     io_SrcX        x offset into the RastPort to start printing from.
  271.     io_SrcY        y offset into the RastPort to start printing from.
  272.     io_SrcWidth    width of the RastPort to print (from io_SrcX).
  273.     io_SrcHeight    height of the RastPort to print (from io_SrcY).
  274.     io_DestCols    width of the printout in printer pixels.
  275.     io_DestRows    height of the printout in printer pixels.
  276.     io_Special    flag bits
  277.             (some of which pertain to DestCols and DestRows).
  278.             -if SPECIAL_MIL is set, then the associated
  279.              parameter is specified in thousandths of
  280.              an inch on the printer.  ie. if DestCols = 8000,
  281.              DestRows = 10500 and SPECIAL_MILROWS and
  282.              SPECIAL_MILCOLS is set then the printout would be
  283.              8.000 x 10.500 inches.
  284.             -if SPECIAL_FULL is set, then the specific dimension
  285.              is set to the maximum possible as determined
  286.              by the printer limits or the configuration
  287.              limits; whichever is less.
  288.             -if SPECIAL_FRAC is set, the parameter is
  289.              taken to be a longword binary fraction
  290.              of the maximum for that dimension.
  291.             -if all bits for a dimension are clear,
  292.              (ie. SPECIAL MIL/FULL/FRAC and ASPECT are NOT set)
  293.              then the parameter is specified in printer pixels.
  294.             -if SPECIAL_CENTER is set then the image will be
  295.              put between the left and right edge of the paper.
  296.             -if SPECIAL_ASPECT is set, one of the dimensions
  297.              may be reduced/expanded to preserve the aspect
  298.              ratio of the print.
  299.             -SPECIAL_DENSITY(1-7) this allows for a maximum of 7
  300.              different print densities.  DENSITY1 is the lowest
  301.              density and the default.
  302.             -SPECIAL_NOFORMFEED - this allows for the mixing of
  303.              text and graphics or multiple graphic dumps on page
  304.              oriented printers (usually laser jet printers).
  305.              When this flag is set the page will not be ejected
  306.              after a graphic dump.  If you perform another
  307.              graphic dump without this flag set OR close the
  308.              printer after printing text after a graphic dump,
  309.              the page will be ejected.
  310.             -if SPECIAL_TRUSTME is set then the printer specific
  311.              driver is instructed to not issue a reset command
  312.              before and after the dump.  If this flag is NOT
  313.              checked by the printer specific driver then setting
  314.              this flag has no effect.  Since we now recommend
  315.              that printer driver writers no longer issue a reset
  316.              command it is probably a safe idea to always set
  317.              this flag when calling for a dump.
  318.             -if SPECIAL_NOPRINT is set then the following is done:
  319.              Compute print size, set 'io_DestCols' and
  320.              'io_DestRows' in the calling program's 'IODRPReq'
  321.              structure and exit, DON'T PRINT.  This allows the
  322.              calling program to see what the final print size
  323.              would be in printer pixels.  Note that it modifies
  324.              the 'io_DestCols' and 'io_DestRows' fields of your
  325.              'IODRPReq' structure.  It also sets the print
  326.              density and updates the 'MaxXDots', 'MaxYDots',
  327.              'XDotsInch', and 'YDotsInch' fields of the
  328.              'PrinterExtendedData' structure.
  329.  
  330.     There following rules for the interpretation of io_DestRows and
  331.     io_DestCols that may produce unexpected results when they are
  332.     not greater than zero and io_Special is zero.  They have been
  333.     retained for compatability.  The user will not trigger these
  334.     other rules with well formed usage of io_Special.
  335.  
  336.     When io_Special is equal to 0, the following rules
  337.     (from the V1.1 printer.device, and retained for compatibility
  338.     reasons) take effect.  Remember, these special rules are
  339.     for io_DestRows and io_DestCols and only take effect
  340.     if io_Special is 0).
  341.  
  342.     a) DestCols>0 & DestRows>0 - use as absolute values.
  343.        ie. DestCols=320 & DestRows=200 means that the picture
  344.        will appear on the printer as 320x200 dots.
  345.     b) DestCols=0 & DestRows>0 - use the printers maximum number
  346.        of columns and print DestRows lines. ie. if DestCols=0
  347.        and DestRows=200 than the picture will appear on the
  348.        printer as wide as it can be and 200 dots high.
  349.     c) DestCols=0 & DestRows=0 - same as above except the driver
  350.        determines the proper number of lines to print based on
  351.        the aspect ratio of the printer. ie. This results in the
  352.        largest picture possible that is not distorted or inverted.
  353.        Note: As of this writing, this is the call made by such
  354.        program as DeluxePaint, GraphicCraft, and AegisImages.
  355.     d) DestCols>0 &DestRows=0 - use the specified width and the
  356.        driver determines the proper number of lines to print based
  357.        on the aspect ratio of the printer. ie. if you desire a
  358.        picture that is 500 pixels wide and aspect ratio correct,
  359.        use DestCols=500 and DestRows=0.
  360.     e) DestCols<0 or DestRows>0 - the final picture is either a
  361.        reduction or expansion based on the fraction
  362.        |DestCols| / DestRows in the proper aspect ratio.
  363.        Some examples:
  364.        1) if DestCols=-2 & DestRows=1 then the printed picture will
  365.           be 2x the AMIGA picture and in the proper aspect ratio.
  366.           (2x is derived from |-2| / 1 which gives 2.0)
  367.        2) if DestCols=-1 & DestRows=2 then the printed picture will
  368.           will be 1/2x the AMIGA picture in the proper aspect ratio.
  369.           (1/2x is derived from |-1| / 2 which gives 0.5)
  370.  
  371.    NOTES
  372.     The printer selected in preferences must have graphics
  373.     capability to use this command.  The error 'PDERR_NOTGRAPHICS'
  374.      is returned if the printer can not print graphics.
  375.  
  376.     Color printers may not be able to print black and white or
  377.     greyscale pictures -- specifically, the Okimate 20 cannot print
  378.     these with a color ribbon: you must use a black ribbon instead.
  379.     If the printer has an input buffer option, use it.
  380.     If the printer can be uni or bi directional, select
  381.     uni-directional; this produces a much cleaner picture.
  382.     Most printer drivers will attempt to set unidirectional
  383.     printing if it is possible under software control.
  384.  
  385.     Please note that the width and height of the printable area on
  386.     the printer is in terms of pixels and bounded by the following:
  387.      a) WIDTH = (RIGHT_MARGIN - LEFT_MARGIN + 1) / CHARACTERS_PER_INCH
  388.      b) HEIGHT = LENGTH / LINES_PER_INCH
  389.        Margins are set by preferences.
  390.  
  391.     For BGR printer support, the YMC values in the printer
  392.     specific render.c functions equate to BGR respectively, ie.
  393.     yellow is blue, magenta is green, and cyan is red.
  394.                                  
  395.  Data Structures
  396.  ---------------
  397.  
  398.     The printer specific and non-specific data structures can be read
  399.     ONCE you have opened the printer device.  Here is a code fragment
  400.     to illustrate how to do just that.
  401.  
  402.     #include <exec/types.h>
  403.     #include <devices/printer.h>
  404.     #include <devices/prtbase.h>
  405.     #include <devices/prtgfx.h>
  406.  
  407.     struct IODRPReq PReq;
  408.     struct PrinterData *PD;
  409.     struct PrinterExtendedData *PED;
  410.  
  411.    open the printer device / if it opened...
  412.    if (OpenDevice("printer.device", 0, &PReq, 0) == NULL) {
  413.        get pointer to printer data
  414.        PD = (struct PrinterData *)PReq.io_Device;
  415.        get pointer to printer extended data
  416.        PED = &PD->pd_SegmentData->ps_PED;
  417.        let's see what's there
  418.        printf("PrinterName = '%s', Version=%u, Revision=%u\n",
  419.            PED->ped_PrinterName, PD->pd_SegmentData->ps_Version,
  420.            PD->pd_SegmentData->ps_Revision,);
  421.        printf("PrinterClass=%u, ColorClass=%u\n",
  422.            PED->ped_PrinterClass, PED->ped_ColorClass);
  423.        printf("MaxColumns=%u, NumCharSets=%u, NumRows=%u\n",
  424.            PED->ped_MaxColumns, PED->ped_NumCharSets, PED->ped_NumRows);
  425.        printf("MaxXDots=%lu, MaxYDots=%lu, XDotsInch=%u, YDotsInch=%u\n",
  426.            PED->ped_MaxXDots, PED->ped_MaxYDots,
  427.            PED->ped_XDotsInch, PED->ped_YDotsInch);
  428.        CloseDevice(&PReq);
  429.    }
  430.  
  431.  Preferences
  432.  -----------
  433.  
  434.     If you want the user to be able to access the printer preferences items
  435.  without having to run preferences (like DPAINT II's printer requester),
  436.  here is what you do.  You can look at the printer's copy of preferences
  437.  by referring to 'PD->pd_Preferences' (the printer device MUST already be
  438.  opened at this point).  After you have this you could put up a requester
  439.  and allow the user to change whatever parameters they wanted.
  440.  BEAR IN MIND THAT YOU ARE RESPONSIBLE FOR RANGE CHECKING THESE SELECTIONS!
  441.  Listed below are the printer preferences items and their valid values.
  442.  
  443.  PrintPitch         - PICA, ELITE, FINE.
  444.  PrintQuality       - DRAFT, LETTER.
  445.  PrintSpacing       - SIX_LPI, EIGHT_LPI.
  446.  PrintLeftMargin    - 1 to PrintRightMargin.
  447.  PrintRightMargin   - PrintLeftMargin to 999.
  448.  PaperLength        - 1 to 999.
  449.  PrintImage         - IMAGE_POSITIVE, IMAGE_NEGATIVE.
  450.  PrintAspect        - ASPECT_HORIZ, ASPECT_VERT.
  451.  PrintShade         - SHADE_BW, SHADE_GREYSCALE, SHADE_COLOR.
  452.  PrintThreshold     - 1 to 15.
  453.  PrintFlags         - CORRECT_RED, CORRECT_GREEN, CORRECT_BLUE, CENTER_IMAGE,
  454.                       IGNORE_DIMENSIONS, BOUNDED_DIMENSIONS,
  455.                       ABSOLUTE_DIMENSIONS, PIXEL_DIMENSIONS,
  456.                       MULTIPLY_DIMENSIONS, INTEGER_SCALING,
  457.                       ORDERED_DITHERING, HALFTONE_DITHERING.
  458.                       FLOYD_DITHERING, ANTI_ALIAS, GREY_SCALE2
  459.  PrintMaxWidth      - 0 to 65535.
  460.  PrintMaxHeight     - 0 to 65535.
  461.  PrintDensity       - 1 to 7.
  462.  PrintXOffset       - 0 to 255.
  463.  
  464.  Asynchronous I/O
  465.  ----------------
  466.  
  467.      The recommended way to do asynchronous i/o is...
  468.  
  469.  a) To send requests for i/o.
  470.  
  471.      struct IORequest *ioreq;
  472.      struct MsgPort *port;
  473.      UBYTE signal;
  474.  
  475.      port = ioreq->io_Message.mn_ReplyPort;
  476.      signal = port->mp_SigBit;
  477.  
  478.      SendIO(ioreq);  send request 
  479.      Wait(signal);  wait for completion (go to sleep) 
  480.      while ((Msg = GetMsg(port)) != NULL) {  get ALL messages
  481.      }
  482.  
  483.  b) To abort a previous request for i/o.
  484.  
  485.      struct IORequest *ioreq;
  486.  
  487.      AbortIO(ioreq);  abort request 
  488.      WaitIO(ioreq);  wait for reply 
  489.  
  490.      at this point you can re-use 'ioreq'.
  491.  
  492.      Note that in the above examples 'ioreq' could be any one of...
  493.      a) struct IOStdReq    a standard i/o request
  494.      b) struct IODRPReq    a dumprport i/o request
  495.      c) struct IOPrtCmdReq a printer command i/o request
  496.  
  497.      It is recommend that you do asynchronous i/o in your programs
  498.      and give the user a way of aborting all requests.
  499.  
  500.  
  501.          V1.3 Printer Driver Notes
  502.          -------------------------
  503.  
  504.      In general densities which use more than one pass should only be
  505.  used for B&W shade dumps.  They can be used for Grey-Scale or Color Shade
  506.  dumps BUT the output may tend to look muddy or dark.  Also multiple pass
  507.  Color dumps tend to dirty or smear the ribbon (ie. yellow will get
  508.  contaminated with the other colors on the ribbon; you have been warned).
  509.  
  510.  
  511.  Alphacom_AlphaPro_101
  512.  ---------------------
  513.  1. Daisywheel printer (text only).
  514.  
  515.  Brother_HR-15XL
  516.  ---------------
  517.  1. Daisywheel printer (text only).
  518.  
  519.  CalComp_ColorMaster
  520.  -------------------
  521.  1. Thermal transfer b&w/color printer (text and graphics).
  522.  2. Use Black ribbon for non-color dumps; Color ribbon for color dumps.
  523.  3. Linefeeds # of vertical dots printed.
  524.  4. Densities supported are 203x200(1) dpi.
  525.  5. This is a dual printer driver.  Select a PaperSize of 'Narrow Tractor'
  526.     for use with the ColorMaster; 'Wide Tractor' for use with the
  527.     ColorView-5912 (which uses 11 x 17 inch paper).
  528.  
  529.  CalComp_ColorMaster2
  530.  -------------------
  531.  1. Thermal transfer b&w/color printer (text and graphics).
  532.  2. Use Black ribbon for non-color dumps; Color ribbon for color dumps.
  533.  3. Linefeeds # of vertical dots printed.
  534.  4. Densities supported are 203x200(1) dpi.
  535.  5. This is a dual printer driver.  Select a PaperSize of 'Narrow Tractor'
  536.     for use with the ColorMaster; 'Wide Tractor' for use with the
  537.     ColorView-5912 (which uses 11 x 17 inch paper).
  538.  6. This driver is the same as the Calcomp_ColorMaster driver EXCEPT it is
  539.     approximately 2 times faster (during color dumps) and requires LOTS of
  540.     memory (up to 1,272,003 bytes for a full 8 x 10 inch (1600 x 2000 dot)
  541.     color dump).  Typically full-size (color) dumps are 1600 x 1149 dots and
  542.     require 730,767 bytes.  Memory requirements for the ColorView-5912
  543.     are up to 2,572,803 bytes for a full 10 x 16 inch (2048 x 3200 dot)
  544.     color dump.  Typically full-size (color) dumps are 2048 x 2155 dots and
  545.     require 1,732,623 bytes.  The memory requirements are 1/3 when doing a
  546.     non-color printout (on both the ColorMaster and ColorView).
  547.  
  548.  Canon_PJ-1080A
  549.  --------------
  550.  1. Ink jet b&w/color printer (text and graphics).
  551.  2. Linefeeds # of vertical dots printed.
  552.  3. Densities supported are 83x84(1) dpi.
  553.  
  554.  CBM_MPS1000
  555.  -----------
  556.  1. Dot matrix b&w printer (text and graphics).
  557.  2. Linefeeds # of vertical dots printed (-1/3 dot if PaperType = Single). *2
  558.  3. Density    XDPI    YDPI    XYDPI    Comments
  559.      1    120     72     8640
  560.      2    120    144    17280    two pass
  561.      3    240     72    17280            *1
  562.      4    120    216    25920    three pass
  563.      5    240    144    34560    two pass    *1
  564.      6    240    216    51840    three pass    *1
  565.      7    same as 6
  566.  
  567.  Diablo_630
  568.  ----------
  569.  1. Daisywheel printer (text only).
  570.  
  571.  Diablo_Advantage_D25
  572.  --------------------
  573.  1. Daisywheel printer (text only).
  574.  
  575.  Diablo_C-150
  576.  ------------
  577.  1. Ink jet b&w/color printer (text and graphics).
  578.  2. Always linefeeds 4 dots (limitation of printer).
  579.  3. A PaperSize of 'Wide Tractor' selects a maximum print width of
  580.     8.5 inches (for wide roll paper).
  581.  5. Densities supported are 120x120(1) dpi.
  582.  
  583.  EpsonQ (24-pin Epson compatible)
  584.  ------
  585.  1. Dot matrix b&w/color printer (text and graphics).
  586.  2. Drives all EpsonQ (LQ1500, LQ2500, etc.) compatible printers.
  587.  3. Linefeeds # of vertical dots printed.
  588.  4. Density    XDPI    YDPI    XYDPI    Comments
  589.      1     90    180    16200
  590.      2    120    180    21600
  591.      3    180    180    32400
  592.      4    360    180    64800    *1
  593.      5,6,7    same as 4
  594.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  595.     13.6 inches (for wide carriage printers).
  596.  6. A PaperType of 'Single' uses only 16 of the 24 pins, whereas a PaperType
  597.     of 'Fanfold' uses all 24 pins.  The 'Single' option is useful for those
  598.     printers which have a weak power supply and cannot drive all 24 pins
  599.     continuously.  If during a single pass of the print head you notice that
  600.     the top two thirds of the graphics are darker than the bottom one third
  601.     then you will probably need to drop down to 16 pins.
  602.  
  603.  EpsonX[CBM_MPS-1250] (8/9-pin Epson compatible)
  604.  --------------------
  605.  1. Dot matrix b&w/color printer (text and graphics).
  606.  2. Drives all EpsonX (EX/FX/JX/LX/MX/RX, etc.) compatible printers.
  607.  3. Linefeeds # of vertical dots printed (-1/3 dot if PaperType = Single). *2
  608.  4. Density    XDPI    YDPI    XYDPI    Comments
  609.      1    120     72     8640
  610.      2    120    144    17280    two pass
  611.      3    240     72    17280            *1
  612.      4    120    216    25920    three pass
  613.      5    240    144    34560    two pass    *1
  614.      6    240    216    51840    three pass    *1
  615.      7    same as 6
  616.  
  617.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  618.     13.6 inches (for wide carriage printers).
  619.  6. Use this driver if you own a CBM_MPS-1250 (as it is EpsonX compatible).
  620.  
  621.  EpsonXOld (8/9-pin Epson compatible)
  622.  ---------
  623.  1. Dot matrix b&w printer (text and graphics).
  624.  2. Drives all very old EpsonX (EX/FX/JX/LX/MX/RX, etc.) compatible printers.
  625.  3. Linefeeds # of vertical dots printed.
  626.  4. Density    XDPI    YDPI    XYDPI    Comments
  627.      1     60    72     4320
  628.      2    120    72     8640    (double speed)            *1
  629.      3    120    72     8640
  630.      4    240    72    17280                    *1
  631.      5    120    72     8640    (for use on old Star printers)
  632.      6    240    72    17280    (for use on old Star printers)    *1
  633.      7    240    72    17280    (same as density 4)        *1
  634.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  635.     13.6 inches (for wide carriage printers).
  636.  6. Use this driver if the EpsonX driver does not work properly in graphics
  637.     or text mode on your EpsonX compatible printer.
  638.  
  639.  generic
  640.  -------
  641.  1. Text only printer.
  642.  
  643.  Howtek_Pixelmaster
  644.  ------------------
  645.  1. Plastic ink jet b&w/color printer (text and graphics).
  646.  2. Linefeeds # of vertical dots printed.
  647.  3. Density    XDPI    YDPI    XYDPI    Comments
  648.      1     80     80     6400
  649.      2    120    120    14400
  650.      3    160    160    25600
  651.      4    240    240    57600
  652.      5,6,7    same as 4
  653.  4. Maximum print area is 8.0 x 10.0 inches.
  654.  
  655.  HP_DeskJet
  656.  ----------
  657.  1. Ink jet non-color printer (text and graphics).
  658.  2. Linefeeds # of vertical dots printed.
  659.  3. Density    XDPI    YDPI    XYDPI    Comments
  660.      1     75     75     5625
  661.      2    100    100    10000
  662.      3    150    150    22500
  663.      4    300    300    90000
  664.      5,6,7    same as 4
  665.  4. Maximum print area is 8.0 x 10.0 inches.
  666.  
  667.  HP_LaserJet (LaserJet+/LaserJetII compatible)
  668.  -----------
  669.  1. Laser engine non-color printer (text and graphics).
  670.  2. Linefeeds # of vertical dots printed.
  671.  3. Density    XDPI    YDPI    XYDPI    Comments
  672.      1     75     75     5625
  673.      2    100    100    10000
  674.      3    150    150    22500
  675.      4    300    300    90000
  676.      5,6,7    same as 4
  677.  4. Maximum print area is 8.0 x 10.0 inches.
  678.  
  679.  HP_PaintJet
  680.  -----------
  681.  1. Ink jet b&w/color printer (text and graphics).
  682.  2. Linefeeds # of vertical dots printed.
  683.  3. Densities supported are 180x180(1) dpi.
  684.  
  685.  HP_ThinkJet
  686.  ----------
  687.  1. Ink jet non-color printer (text and graphics).
  688.  2. Linefeeds # of vertical dots printed.
  689.  3. Density    XDPI    YDPI    XYDPI    Comments
  690.      1     96    96     9216
  691.      2    192    96    18432
  692.      3,4,5,6,7    same as 4
  693.  
  694.  Imagewriter II (Imagewriter compatible)
  695.  --------------
  696.  1. Dot matrix b&w/color printer (text and graphics).
  697.  2. Linefeeds # of vertical dots printed.
  698.  3. Density    XDPI    YDPI    XYDPI    Comments
  699.      1     80     72     5760
  700.      2    120     72     8640
  701.      3    144     72    10368
  702.      4    160     72    11520
  703.      5    120    144    17280    two pass
  704.      6    144    144    20736    two pass
  705.      7    160    144    23040    two pass
  706.  
  707.  Nec_Pinwriter (24-wire Pinwriter compatible (P5/P6/P7/P9/P2200))
  708.  -------------
  709.  1. Dot matrix b&w/color printer (text and graphics).
  710.  2. Drives all Nec 24-wire Pinwriter compatible printers.
  711.  3. Linefeeds # of vertical dots printed.
  712.  4. Density    XDPI    YDPI    XYDPI    Comments
  713.      1     90    180     16200
  714.      2    120    180     21600
  715.      3    180    180     32400
  716.      4    120    360     43200    two pass
  717.      5    180    360     64800    two pass
  718.      6    360    180     64800
  719.      7    360    360    129600    two pass
  720.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  721.     13.6 inches (for wide carriage printers).
  722.  
  723.  Okidata_92
  724.  ----------
  725.  1. Dot matrix non-color printer (text and graphics).
  726.  2. Always linefeeds 7/72 inch (limitation of printer in graphics mode).
  727.  3. Densities supported are 72x72 dpi.
  728.  
  729.  Okidata_293I
  730.  ------------
  731.  1. Dot matrix b&w/color printer (text and graphics).
  732.  2. Drives 292 or 293 using the IBM interface module.
  733.  3. Linefeeds # of vertical dots printed (-1/2 dot if PaperType = Single) *3
  734.  4. Density    XDPI    YDPI    XYDPI    Comments
  735.      1    120    144    17280
  736.      2    240    144    34560
  737.      3    120    288    34560    two pass
  738.      4    240    288    69120    two pass
  739.      5,6,7    same as 4
  740.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  741.     13.6 inches (for wide carriage printers).
  742.  
  743.  Okimate-20
  744.  ----------
  745.  1. Thermal transfer b&w/color printer (text and graphics).
  746.  2. Use Black ribbon for non-color dumps; Color ribbon for color dumps.
  747.  3. Linefeeds an even # of dots printed. (ie. if 3 printed, 4 advanced).
  748.  4. Densities supported are 120x144(1) dpi.
  749.  
  750.  Quadram_QuadJet
  751.  ---------------
  752.  1. Ink jet b&w/color printer (text and graphics).
  753.  2. Linefeeds # of vertical dots printed.
  754.  3. Densities supported are 83x84(1) dpi.
  755.  
  756.  Qume_LetterPro_20
  757.  -----------------
  758.  1. Daisywheel printer (text only).
  759.  
  760.  Seiko_5300
  761.  ----------
  762.  1. Thermal transfer b&w/color printer (graphics only).
  763.  2. Use Black ribbon for non-color dumps; Color ribbon for color dumps.
  764.  3. Density    XDPI    YDPI    XYDPI    Comments
  765.      1    152    152    23104    drives CH-5301 printer
  766.      2    203    203    41209    drives CH-5312 printer
  767.      3    240    240    57600    drives CH-5303 printer
  768.      4, 5,6,7    same as 3
  769.      You must select the proper density to drive the specific printer
  770.      that you have.
  771.  4. This driver is not on the V1.3 Workbench or Extras disk.  It is
  772.     available on BIX and directly from Seiko.
  773.  
  774.  Seiko_5300a
  775.  -----------
  776.  1. Thermal transfer b&w/color printer (graphics only).
  777.  2. Use Black ribbon for non-color dumps; Color ribbon for color dumps.
  778.  3. Density    XDPI    YDPI    XYDPI    Comments
  779.      1    152    152    23104    drives CH-5301 printer
  780.      2    203    203    41209    drives CH-5312 printer
  781.      3    240    240    57600    drives CH-5303 printer
  782.      4, 5,6,7    same as 3
  783.      You must select the proper density to drive the specific printer
  784.      that you have.
  785.  4. This driver is the same as the Seiko_5300 driver EXCEPT it is
  786.     approximately 2 times faster (during color dumps) and requires LOTS of
  787.     memory (up to 1,564,569 bytes for a full 8 x 10 inch (1927 x 2173 dot)
  788.     color dump).  Typically full-size (color) dumps are 1927 x 1248 dots
  789.     and require 898,569 bytes.  The memory requirements are 1/3 when doing
  790.     a non-color printout.
  791.  5. This driver is not on the V1.3 Workbench or Extras disk.  It is
  792.     available on BIX and directly from Seiko.
  793.  
  794.  Tektronix_4693D
  795.  ---------------
  796.  1. Thermal transfer b&w/color printer (graphics only).
  797.  2. Densities supported are 300x300(1) dpi
  798.  3. Due to the way the printer images a picture none of the printer
  799.     preferences options affect the printout with the following exceptions:
  800.     a)Aspect - Horizontal, Vertical
  801.     b)Shade - B&W, Grey_Scale, Color
  802.     ...as a result of this only full size pictures can be printed.
  803.  4. Keypad menu option 3b COLOR ADJUSTMENT may be set from the keypad.
  804.     For normal prints this option should be set to "do not adjust".
  805.  5. Keypad menu option 3d VIDEO COLOR CORRECTION may be set from the keypad.
  806.     For normal prints this option should be set to "do not adjust".
  807.  6. Keypad menu option 5 BACKGROUND COLOR EXCHANGE may be set from the
  808.     keypad.  For normal prints this option should be set to "print colors
  809.     as received".
  810.  7. Once a picture has been printed additional copies may be printed
  811.     without resending by using the printers keypad.
  812.  8. This driver is not on the V1.3 Workbench or Extras disk.  It is
  813.     available on BIX and directly from Tektronix.
  814.  
  815.  Tektronix_4696
  816.  --------------
  817.  1. Ink jet b&w/color printer (text and graphics).
  818.  2. Always linefeeds 4 dots (limitation of printer).
  819.  3. Densities supported are 121x120(1), 242x120(black)(2) and
  820.     242x120(color)(3).
  821.     Selecting a density of 2 or higher really doesn't give you true 242 dpi
  822.     resolution since the printer only has 121 x dots per inch.
  823.     Instead this mode tells the printer to go into it's double pass mode.
  824.     Here, it outputs a line of dots at 121 dpi; and outputs the line again
  825.     (shifted to the right by 1/242 of an inch).  This produces much more
  826.     vibrate colors and gives the illusion of more resolution.  One drawback
  827.     is that large areas of solid colors (red, green, and blue specifically)
  828.     tend to over-saturate the paper with ink.  Density1 outputs all colors
  829.     in one pass.  Density 2 does a double pass on black.  Density 3 does a
  830.     double pass on all colors.  Density 1 to 3 correspond to the printer's
  831.     graphics printing modes 1 to 3 (respectively).
  832.  4. This driver is not on the V1.3 Workbench or Extras disk.  It is
  833.     available on BIX and directly from Tektronix.
  834.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  835.     9.0 inches (for wide roll paper).
  836.  
  837.  Toshiba_P351C (24-pin Toshiba compatible)
  838.  -------------
  839.  1. Dot matrix b&w/color printer (text and graphics).
  840.  2. Drives all Toshiba_P351C compatible printers.
  841.  3. Linefeeds # of vertical dots printed.
  842.  4. Density    XDPI    YDPI    XYDPI    Comments
  843.      1    180    180    32400
  844.      2    360    180    64800
  845.      3,4,5,6,7    same as 2
  846.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  847.     13.5 inches (for wide carriage printers).
  848.  
  849.  Toshiba_P351SX (24-pin Toshiba compatible)
  850.  --------------
  851.  1. Dot matrix b&w/color printer (text and graphics).
  852.  2. Drives all Toshiba_P351SX (321SL, 321SLC, 341SL) compatible printers.
  853.  3. Linefeeds # of vertical dots printed.
  854.  4. Density    XDPI    YDPI    XYDPI    Comments
  855.      1    180    180     32400
  856.      2    360    180     64800
  857.      3    180    360     64800    two pass
  858.      4    360    360    129600    two pass
  859.      5,6,7    same as 4
  860.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  861.     13.5 inches (for wide carriage printers).
  862.  
  863.  Xerox_4020
  864.  ----------
  865.  1. Ink jet b&w/color printer (text and graphics).
  866.  2. Always linefeeds 4 dots (limitation of printer).
  867.  3. This driver is IDENTICAL to the Diablo_C-150 driver EXCEPT it outputs
  868.     all black dots TWICE.  This is a special feature of this printer and
  869.     produces much more solid, darker black shades.  Please note that some
  870.     printing time overhead results from this feature; if you don't want it
  871.     use the Diablo_C-150 driver.
  872.  4. Densities supported are 121x120(1) and 242x240(2) dpi.
  873.     Selecting a density of 2 or higher really doesn't give you true 240 dpi
  874.     resolution since the Xerox_4020 only has 121 x dots per inch.
  875.     Instead this mode tells the printer to go into it's pseudo 240 dpi mode.
  876.     Here, it outputs a line of dots at 121 dpi; moves the paper up 1/240 of
  877.     an inch and outputs the line again (shifted to the right by 1/240 of an
  878.     inch).  This produces much more vibrate colors and gives the illusion
  879.     of more resolution.  One drawback is that large areas of solid colors
  880.     (red, green, and blue specifically) tend to over-saturate the paper with
  881.     ink.
  882.  5. A PaperSize of 'Wide Tractor' selects a maximum print width of
  883.     9.0 inches (for wide roll paper).
  884.  
  885.  
  886.  Notes
  887.  -----
  888.  
  889.  *0 - on most printers friction fed paper tends to produce better looking
  890.       (ie. less horizontal banding) graphic dumps than tractor fed paper.
  891.  
  892.  *1 - in this mode the printer cannot print two consecutive dots in a row.
  893.       It is recommended that you only use this density for B&W Shade dumps.
  894.  
  895.  *2 - only when 72 YDPI is selected.  This option is useful if you notice
  896.       tiny white horizontal strips in your printout.
  897.  
  898.  *3 - only when 144 YDPI is selected.  This option is useful if you notice
  899.       tiny white horizontal strips in your printout.
  900.  
  901. printer.device/PRD_PRTCOMMAND                   printer.device/PRD_PRTCOMMAND
  902.  
  903.    NAME
  904.        PRD_PRTCOMMAND -- send a command to the printer
  905.  
  906.    FUNCTION 
  907.       This function sends a command to either the parallel or serial
  908.       device.  The printer device maps this command to the control
  909.       code set of the current printer.  The commands supported can
  910.       be found with the printer.device/Write command.  All printers
  911.       may not support all functions.
  912.  
  913.    IO REQUEST IOPrtCmdReq
  914.        io_Message      mn_ReplyPort set
  915.        io_Device       preset by OpenDevice
  916.        io_Unit         preset by OpenDevice
  917.        io_Command      PRD_PRTCOMMAND
  918.        io_PrtCommand   the actual command number
  919.        io_Parm0        parameter for the command
  920.        io_Parm1        parameter for the command
  921.        io_Parm2        parameter for the command
  922.        io_Parm3        parameter for the command
  923.  
  924.    RESULTS
  925.        Errors: if the PRD_PRTCOMMAND succeeded, then io_Error will be zero.
  926.        Otherwise io_Error will be non-zero.  An error of -1 indicates that
  927.        the command is not supported by the current printer driver.  This
  928.        could be used to check if the connected printer supports a particular
  929.        command (italics for example).
  930.  
  931.    SEE ALSO
  932.        printer.device/Write printer.h, parallel.device, Preferences
  933.  
  934. printer.device/PRD_QUERY                             printer.device/PRD_QUERY
  935.  
  936.    NAME
  937.     PRD_QUERY -- query printer port/line status
  938.  
  939.    FUNCTION
  940.     This command returns the status of the printer port's lines and
  941.     registers.  Since the printer port uses either the serial or
  942.     parallel port for i/o, the actual status returned is either the
  943.     serial or parallel port's status.
  944.  
  945.    IO REQUEST
  946.     io_Message    mn_ReplyPort set if quick I/O is not possible
  947.     io_Device    preset by the call to OpenDevice
  948.     io_Command    PRD_QUERY
  949.     io_Data        ptr to 2 UBYTES where result will be stored.
  950.  
  951.    RESULTS
  952.      io_Data          BIT  ACTIVE  FUNCTION (SERIAL DEVICE)
  953.  
  954.              LSB       0    low    reserved
  955.                        1    low    reserved
  956.                        2    low    reserved
  957.                        3    low    Data Set Ready
  958.                        4    low    Clear To Send
  959.                        5    low    Carrier Detect
  960.                        6    low    Ready To Send
  961.                        7    low    Data Terminal Ready
  962.              MSB       8    high   read buffer overflow
  963.                        9    high   break sent (most recent output)
  964.                       10    high   break received (as latest input)
  965.                       11    high   transmit x-OFFed       
  966.                       12    high   receive x-OFFed       
  967.                    13-15           reserved
  968.  
  969.  
  970.      io_Data          BIT  ACTIVE  FUNCTION (PARALLEL DEVICE)
  971.  
  972.                        0     hi     printer busy (offline)
  973.                        1     hi     paper out
  974.                        2     hi     printer selected
  975.                      (WARNING: the bit 2 line is also connected
  976.                       to the serial port's ring indicator pin
  977.                       on the A500 and A2000)
  978.                      3-7            reserved
  979.  
  980.      io_Actual       1-parallel, 2-serial
  981.  
  982. printer.device/PRD_RAWWRITE                       printer.device/PRD_RAWWRITE
  983.  
  984.    NAME
  985.     PRD_RAWWRITE -- transparent write command
  986.  
  987.    FUNCTION
  988.     This is a non standard write command that performs no
  989.     processing on the data passed to it.
  990.  
  991.    IO REQUEST
  992.     io_Message    mn_ReplyPort set if quick I/O is not possible
  993.     io_Command    PRD_RAWWRITE
  994.     io_Flags    IOB_QUICK set if quick I/O is possible
  995.     io_Length    the number of bytes in io_Data
  996.     io_Data        the raw bytes to write to the printer
  997.  
  998. printer.device/PWrite                                   printer.device/PWrite
  999.  
  1000.    NAME
  1001.     PWrite -- internal write to printer port
  1002.  
  1003.    SYNOPSIS
  1004.     error = (*PrinterData->pd_PWrite)(buffer, length);
  1005.     D0                                  A0      D0
  1006.  
  1007.    FUNCTION
  1008.     PWrite writes 'length' bytes directly to the printer.  This
  1009.     function is generally called by printer drivers to send
  1010.     their buffer(s) to the printer.
  1011.  
  1012.     This function is accessed by referencing off the PrinterData (PD)
  1013.     structure.  Below is a code fragment to show how to do get access
  1014.     to a pointer to the PrinterData (PD) structure.
  1015.  
  1016.     #include <exec/types.h>
  1017.     #include <devices/printer.h>
  1018.     #include <devices/prtbase.h>
  1019.  
  1020.     struct IODRPReq PReq;
  1021.     struct PrinterData *PD;
  1022.     struct PrinterExtendedData *PED;
  1023.  
  1024.     /* open the printer device (any version); if it opened... */
  1025.     if (OpenDevice("printer.device", 0, &PReq, 0) == NULL) {
  1026.  
  1027.         /* get pointer to printer data structure */
  1028.         PD = (struct PrinterData *)PReq.io_Device;
  1029.  
  1030.         /* write something directly to the printer */
  1031.         (*PD->pd_PWrite)("Hello world\n", 12);
  1032.  
  1033.         CloseDevice(&PReq); /* close the printer device */
  1034.     }
  1035.  
  1036.