Article View: comp.sys.next.programmer
Article #2208Re: Printing Text efficiently
From: Karl Kraft
Date: Thu, 21 Jan 1993 05:38
Date: Thu, 21 Jan 1993 05:38
37 lines
1562 bytes
1562 bytes
In comp.sys.next.programmer article <sfLSrsq00WA7FdN0pM@andrew.cmu.edu> you wrote: > >One more quick question for you all: > > Is there any way to trivially print plain-text-information on a >printer from inside an App? Or do I need to stuff everything I wish to >print into a text-object and send that object a print-message? > You could just use popen() to send it to lpr. > (It just seems like a lot of overhead...) > It's not a lot of overhead (maybe 20 lines (from creation to deletion)), and your user will get a Print and Page Layout Panel that will * Allow them to select a printer * Allow them to select a page size * Allow them to save the postscript * Fax the text * Preview before they print to find out how many pages * Select certain pages to print * Possibly choose other fonts to print the document in * Select margins So do you want to use popen() and write a UI to do all that, or do you want to use the Text object, and get it for free? -- __________ Karl Kraft karl@ensuing.com (NeXT mail)
Technical Details
Message-ID:
<9301210538.AA05089@ensuing.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!karl@ensuing.comReferences:
<sfLSrsq00WA7FdN0pM@andrew.cmu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!karl@ensuing.com From: karl@ensuing.com (Karl Kraft) Subject: Re: Printing Text efficiently Message-ID: <9301210538.AA05089@ensuing.com> Sender: daemon@magnus.acs.ohio-state.edu Reply-To: karl@ensuing.com (Karl Kraft) Organization: Ensuing Technologies Inc. References: <sfLSrsq00WA7FdN0pM@andrew.cmu.edu> Distribution: usa Date: Thu, 21 Jan 1993 05:38:27 GMT Lines: 38