Article View: borland.public.jbuilder.java.api
Article #2930Re: Java Printing
From: Drazen Gemic
Date: Fri, 19 Feb 1999 00:00
Date: Fri, 19 Feb 1999 00:00
26 lines
1566 bytes
1566 bytes
>In article <7afqd3$535$1@oak.prod.itd.earthlink.net>, > "Casey Williams Work" <cwilliams@thedswgroup.com> wrote: >> Does anybody have an example of printing a text file inJava 1.2 ( Java >> 2.0 ). I still haven't found the "Magic" combination of statements to get >> it to print properly. Thanks in advance! For the plain text file it is fairly simple // for UNIX String printDev="/dev/lp"; // for Win32 String printDev="PRN:"; // both FileWriter fw=new FileWriter(printDev); Rest of the code would be copying from one stream to another. DG
Technical Details
Message-ID:
<7aja7o$nn$1@bagan.srce.hr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7afqd3$535$1@oak.prod.itd.earthlink.net> <7ah1sg$5lh$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,80c1d4e535ddaaec X-Google-Attributes: gid1089d0,public X-Google-Thread: 113ae9,80c1d4e535ddaaec X-Google-Attributes: gid113ae9,public X-Google-Thread: f74b3,80c1d4e535ddaaec X-Google-Attributes: gidf74b3,public X-Google-Thread: 107d46,80c1d4e535ddaaec X-Google-Attributes: gid107d46,public From: "Drazen Gemic" <Drazen.Gemic@srce.hr> Subject: Re: Java Printing Date: 1999/02/19 Message-ID: <7aja7o$nn$1@bagan.srce.hr> X-Deja-AN: 446007438 References: <7afqd3$535$1@oak.prod.itd.earthlink.net> <7ah1sg$5lh$1@nnrp1.dejanews.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: news@news.carnet.hr X-Trace: bagan.srce.hr 919415864 759 195.29.180.43 (19 Feb 1999 09:17:44 GMT) Organization: CARNet, CROATIA NNTP-Posting-Date: 19 Feb 1999 09:17:44 GMT Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.databases,comp.lang.java.help