home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / programm / 8237 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.5 KB  |  52 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!karl@ensuing.com
  3. From: karl@ensuing.com (Karl Kraft)
  4. Subject: Re: Printing Text efficiently
  5. Message-ID: <9301210538.AA05089@ensuing.com>
  6. Sender: daemon@magnus.acs.ohio-state.edu
  7. Reply-To: karl@ensuing.com (Karl Kraft)
  8. Organization: Ensuing Technologies Inc.
  9. References: <sfLSrsq00WA7FdN0pM@andrew.cmu.edu>
  10. Distribution: usa
  11. Date: Thu, 21 Jan 1993 05:38:27 GMT
  12. Lines: 38
  13.  
  14. In comp.sys.next.programmer article <sfLSrsq00WA7FdN0pM@andrew.cmu.edu> you  
  15. wrote:
  16. >
  17. >One more quick question for you all:
  18. >
  19. >    Is there any way to trivially print plain-text-information on a
  20. >printer from inside an App?  Or do I need to stuff everything I wish to
  21. >print into a text-object and send that object a print-message?
  22. >
  23.  
  24.  
  25. You could just use popen() to send it to lpr.
  26.  
  27.  
  28. >    (It just seems like a lot of overhead...)
  29. >
  30.  
  31. It's not a lot of overhead (maybe 20 lines (from creation to deletion)),  
  32. and your user will get a Print and Page Layout Panel that will
  33.  
  34. * Allow them to select a printer
  35. * Allow them to select a page size
  36. * Allow them to save the postscript
  37. * Fax the text
  38. * Preview before they print to find out how many pages
  39. * Select certain pages to print
  40. * Possibly choose other fonts to print the document in
  41. * Select margins
  42.  
  43. So do you want to use popen() and write a UI to do all that, or do you want  
  44. to use the Text object, and get it for free?
  45.  
  46.  
  47. --
  48. __________
  49. Karl Kraft
  50. karl@ensuing.com  (NeXT mail)
  51.  
  52.