home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7392 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!napier.uwaterloo.ca!gmcarthu
  3. From: gmcarthu@napier.uwaterloo.ca (Grant McArthur)
  4. Subject: Re: Printing ASCII
  5. Message-ID: <C0I756.CA8@undergrad.math.waterloo.edu>
  6. Summary: DosOpen() 
  7. Sender: news@undergrad.math.waterloo.edu
  8. Organization: University of Waterloo
  9. References: <1ihok0INNmb8@morrow.stanford.edu>
  10. Distribution: na
  11. Date: Thu, 7 Jan 1993 21:46:18 GMT
  12. Lines: 20
  13.  
  14. In article <1ihok0INNmb8@morrow.stanford.edu> GG.MPD@forsythe.stanford.edu (Michael Durket) writes:
  15. >Is there an interface into OS/2 printing that allows you to
  16. >submit an ASCII file to be printed on any printer (i.e. does
  17. >OS/2 have a general purpose ASCII to printer-dependent page
  18. >formatting routine)? I'd like to avoid writing a routine to
  19. >do this for my program if one already exists that I can use.
  20. >
  21. >Any assistance is appreciated.
  22.  
  23. Use LPT1: (or whatever printer port you wish) like a file.  Use DosOpen with 
  24. LPT1: as the file name, and then treat it like a file with DosWrite() calls.
  25.  
  26. I found that worked nicely for printed ASCII to a printer.  (My case was 
  27. information tables to a HP emulating printer by the NULL printer driver.)
  28.  
  29. Hope this helps,
  30. Grant McArthur
  31. University of Waterloo
  32. Waterloo, Ontario, Canada
  33.  
  34.