home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / e / estat21.zip / EASIDOC.ZIP / ESCHAP15.DOC < prev    next >
Text File  |  1992-06-30  |  7KB  |  199 lines

  1.  
  2.  
  3.      Chapter 15: PRINTING MSP FILES
  4.  
  5.  
  6.      EASIGRAF saves images of the graphs it produces to disk
  7.      in the format used by Microsoft Paint, a program supplied
  8.      free with Microsoft Windows. So that other programs can
  9.      tell what format a file is, you should give it the
  10.      extension .MSP when you save it from EASIGRAF. The MSP
  11.      file can then be read in and altered by the Paint
  12.      program, or it can be read in by any other program which
  13.      can deal with MSP files, for example the more recent
  14.      versions of WordPerfect. After the MSP file has been read
  15.      into one of these programs and any desired adjustments
  16.      made, the program can be used to print it out in the
  17.      usual way. (Note that newer versions of Microsoft Paint
  18.      by default expect the file to be in a format called BMP
  19.      rather than MSP, but an option to read in MSP files
  20.      instead is still available.)
  21.  
  22.      It is possible to print out MSP files directly without
  23.      first reading them into one of the above programs by
  24.      using a small utility program supplied called PRMSP.EXE.
  25.      However note that this utility may not work on MSP files
  26.      which have been saved from some versions of Paint
  27.      (because the format as been changed). There should be no
  28.      problem in using PRMSP to print out the MSP files
  29.      produced by EASIGRAF.
  30.  
  31.  
  32.      15:1. Using PRMSP.EXE
  33.  
  34.      If you do not own Microsoft Paint then you can print out
  35.      the saved file directly from disk to an Epson- or
  36.      IBM-compatible dot matrix printer or a laser printer
  37.      using a small program supplied called PRMSP. It is
  38.      distributed in the self-extracting archive UTILS.EXE. To
  39.      use it, supposing you have saved your graph picture with
  40.      the name SAVED.MSP you should type:
  41.  
  42.      PRMSP SAVED.MSP
  43.  
  44.      and the file will be printed.
  45.  
  46.      The full details of the options available with PRMSP are
  47.      as follows:
  48.  
  49.      PRMSP infile.msp [outfile.prn] [/flag1 /flag2 etc.]
  50.  
  51.      infile.msp - the name of the saved MSP file to be printed
  52.      out.
  53.  
  54.      outfile.prn - the name of a file to be printed to which
  55.      will contain the correct printer codes. This is optional
  56.      and if no name is given then the printer (PRN) will be
  57.      used instead.
  58.  
  59.      /I - this flag means print to an IBM-compatible printer
  60.      instead of an Epson-compatible printer.
  61.  
  62.      /P - this flag means print the graph with the paper in
  63.      "portrait" orientation - across the page - instead of the
  64.      default "landscape" orientation - down the page. Note
  65.      
  66.        115 
  67.         Printing MSP files  
  68.      
  69.      that in earlier versions of PRMSP this had the opposite
  70.      effect because it was taken to refer to the orientation
  71.      of the diagram rather than the paper.
  72.  
  73.      /H - high density - will work with an Epson-compatible
  74.      24-pin printer to give a picture three times smaller the
  75.      default, or twice as small on a Hewlett-Packard
  76.      compatible laser printer.
  77.  
  78.      /D - draught mode - should be quicker but lower quality
  79.      for dot matrix printers in high density mode or
  80.      "portrait" orientation. On Hewlett-Packard compatible
  81.      laser printers prints out double normal size.
  82.  
  83.      /Snumber - this flag means print "number" spaces before
  84.      each line of the picture - use it to control where the
  85.      graph appears on the page. The default is 6. (Only for
  86.      dot matrix printers.)
  87.  
  88.      /Lnumber - this flag controls the line spacing on the
  89.      printer, as used by the ESC A command. It is a value for
  90.      lines per inch. By default "number" is set to 8, but if
  91.      the lines of your graph come out separated or
  92.      overlapping, then using this flag may help you to adjust
  93.      the line-spacing to produce a better picture. (Only for
  94.      dot matrix printers.)
  95.  
  96.      /Fnumber - this flag lets you determine whether a line
  97.      feed (new line) character is sent to your printer with
  98.      each carriage return character. If number is 0 then no
  99.      line feed is sent, if it is 1 then a line feed is sent.
  100.      The default is 1. If your graph comes out "double-spaced"
  101.      - with gaps between each line - then specifying /F0 may
  102.      cure the problem. (Only for dot matrix printers.)
  103.  
  104.      /FF - send a form feed (new page) after printing the
  105.      file. (You must use this flag on the last file you print
  106.      on a laser printer, but other files can be printed onto
  107.      the same page first.)
  108.  
  109.      /HP - produce output for a Hewlett-Packard compatible
  110.      laser printer.
  111.  
  112.      /PS - produce output for a PostScript printer.
  113.  
  114.      For Hewlett-Packard or PostScript printers only:
  115.  
  116.      /OXnumber - x origin, default 72. Measured in points
  117.      (1/72") approximately from the left hand edge of the
  118.      page.
  119.  
  120.      /OYnumber - y origin from the bottom edge of an A4 page,
  121.      default 72 in "portrait" orientation for the bottom left
  122.      corner, or 720 in "landscape" orientation for the top
  123.      left corner of the graph.
  124.  
  125.      For PostScript printers only:
  126.  
  127.      /SXnumber - x scale, default 1.0.
  128.  
  129.  
  130.  
  131.      
  132.        116 
  133.         Printing MSP files  
  134.      
  135.      /SYnumber - y scale, default 1.0.
  136.  
  137.      /ROnumber - rotation about origin, default 0.0.
  138.  
  139.      Example use of PRMSP:
  140.  
  141.      PRMSP HISTO.MSP /HP /OY100 /OX200
  142.  
  143.      Print HISTO.MSP to a Hewlett-Packard compatible printer
  144.      with origin at 200,100.
  145.  
  146.      PRMSP MYGRAPH.MSP /PS /SX0.5 /SY3 /RO75
  147.  
  148.      Print MYGRAPH.MSP to a PostScript printer, twice as
  149.      narrow and three times as high as normal, rotated through
  150.      75 degrees.
  151.  
  152.      PRMSP ANOVA.MSP TEMP.PRN /S12 /I
  153.  
  154.      Print the file ANOVA.MSP out to the file TEMP.PRN, in a
  155.      format suitable for sending to an IBM-compatible dot
  156.      matrix printer, with twelve spaces to the left instead of
  157.      the default 6. Then later TEMP.PRN could be printed by
  158.      entering:
  159.  
  160.      PRINT TEMP.PRN
  161.  
  162.      The advantage of this is that by using the DOS PRINT
  163.      command printing occurs in background - you can get on
  164.      with other things while the graph is being printed.
  165.  
  166.      Notes
  167.  
  168.      Except in the case of PostScript printers, PRMSP cannot
  169.      work if your computer does not send 8 data bits to the
  170.      printer. This is sometimes altered by the MODE command
  171.      which is usually in the AUTOEXEC.BAT file - see your DOS
  172.      manual for details - if your printer is on a serial cable
  173.      rather than the ordinary "Centronics" parallel cable.
  174.      Also make sure that your printer is set to receive 8 bits
  175.      rather than 7 - see your printer manual if you have
  176.      problems.
  177.  
  178.      You must always use the /FF flag when you wish to produce
  179.      output from a laser printer, otherwise the image will be
  180.      stored in the printer's memory but will never be
  181.      displayed. However you may wish to print a number of
  182.      graphs onto different parts of the same page and then
  183.      only use the /FF flag with the last one.
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.      
  198.        117 
  199.