🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18070

Printer output

#18070
From: Sam C. King
Date: Sat, 15 Aug 1998 00:00
18 lines
1252 bytes
Output to the printer from within an application must be
possible, but no one mentions it.  I can't beleive that
one must always print everything to the screen and then
click on the printer dialog box.

There are times when you would like to print a large
report from within an application.  In C++, one would do:

extern ofstream pout;            // a file is created
pout.open("foo");                // the file is opened
pout << "send this to printer";  // material is put in file
pout.close;                      // the file "foo" is closed
system ("lm -c foo; rm foo");    // the file "foo" is sent
                          // to the printer and then deleted

Pretty simple.  How does one do the same thing in Java?
Thanks
Sam   samcking@olypen.com
Technical Details
Message-ID: <35D62AF7.278878F3@olypen.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,aef6c32cd589a46d,start
X-Google-Attributes: gidf74b3,public
From: "Sam C. King" <samcking@olypen.com>
Subject: Printer output
Date: 1998/08/15
Message-ID: <35D62AF7.278878F3@olypen.com>
X-Deja-AN: 381539270
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language