home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / infxdl86.lzh / INFPRINT.DOC < prev    next >
Text File  |  1994-05-10  |  4KB  |  79 lines

  1.  
  2. /*--------------------------------------------------------------*/ 
  3.  
  4.           INFPRINT.CMD - A PRINT UTILITY FOR INFCONVERT.
  5.  
  6.  Infprint is a small print utility to enable condensed printing of files 
  7. produced by infconvert - an inf file convertor program.  After producing 
  8. plain text files with infconvert, I started printing them with 2up.cmd, 
  9. which gave me 2 pages of print to one side of paper.  I realised that a lot 
  10. of what 2up.cmd does had already been done by infconvert - all the lines 
  11. were to a set length, all the double blank lines had been stripped (and most 
  12. of the other blank lines as well!).  All that had to be done was to set the 
  13. printer to condensed print, join 2 lines of text one page length apart 
  14. together and print it out one line at a time.  I also had a notion to try to 
  15. print on both side of the page on a standard laserjet III compatible printer 
  16. (I have a Ricoh LP1200) and being successful in my attempt at emulating
  17. 2up.cmd, I modified my program so as to send every second full page to a 
  18. temporary file, which is printed after the user has turned over the pages
  19. already printed on one side.  It works most of the time.  
  20. Paper handling is the key to success in this venture.  If your printer can 
  21. cope with curled up edges and stuck together hot paper then you'll have no 
  22. problems!  I took the printer control codes from 2up.cmd and modified them
  23. only slightly.  Everything else, even though the output looks like that of
  24. 2up.cmd, was written from scratch - infprint doesn't have half the
  25. functionality of 2up - it doesn't need it.  
  26.  
  27.  
  28.  /*----------------------------------------------------------------*/ 
  29. Usage :- At an os2 prompt type :- infprint filespec [s]
  30.  filespec:- a text file produced by infconvert.  (Any text file can be
  31. printed, but no text manipulation takes place and lines are truncated at 120
  32. for portrait and 85 for landscape printing.]
  33.  [s] - s on its own or after a filespec brings up a setup menu.
  34.   Setup Menu Options
  35.  O - select orientation.  O toggles between portrait and landscape modes. 
  36. Printing is condensed in both modes.  Lines are truncated at 85 for
  37. landscape and 120 for portrait.  Ideally use infconvert to produce the file
  38. to be printed with the margin set to zero and characters per line to
  39. whichever of these figures corresponds to the orientation required.
  40.   P - toggles printing on both or oneside of the paper. If you try 'both'
  41. then, after the first side has been printed, you turn the paper over and
  42. press any key. N.B.- this means the text already printed should be face up
  43. (it is on my printer anyway!).  Try to get the paper as flat as you can
  44. before putting it through the printer again.  During both side printing a
  45. temporary file 'cwtcwt.cwt' is produced.  Infprint will delete any file of
  46. this name without warning before it starts printing. Beware.
  47.  If you want to flatten your paper under a heavy book in a humid
  48. room overnight before printing the second side, then wait until the first 
  49. sides are all finished, and stop the program with control C and enter.  The 
  50. cwtcwt.cwt file can then be printed later using os/2's print command - the 
  51. control codes are in the top of the file.
  52.  L - sets lines per page for portrait and landscape.  The settings you have
  53. are what works with my printer - you may need to alter these as no form
  54. feeds are passed to the printer - it just form feeds when it thinks its at
  55. the bottom of the page. Try it and see.  For landscape L needs to be an even
  56. number.  
  57.  S - Save to ini.  Changes are not saved to the ini file unless s is pressed
  58. before quitting the menu. 
  59.  Q - Quit- back to a prompt if no filespec was given, back to printing if
  60. filespec present.  
  61. /*----------------------------------------------------------------*/
  62. /*----------------------------------------------------------------*/
  63.  If you can include control codes which work with other printers please do so.
  64. Annotate either the code or this file with your enhancements.
  65.  Infprint.cmd can be freely used, modified, distributed, cursed at and 
  66. criticised as you please.  It's yours to do with what you will.  I will not be
  67. coming round to unjam any printers, however - use it at your own risk.
  68.  
  69.  Colin Thomson. 30th January 1994. Fidonet  - DoNoR/2 (2:440/4)
  70.                                    Internet - colin@donor2.ukmail.net
  71.  
  72. /*-----------------------------------------------------------------*/ 
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.