🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How Can i print a text file through a remote printer using java not jsp

#440
From: Paul Nichols [TeamB]
Date: Wed, 14 Sep 2005 02:38
10 lines
1130 bytes
Earn wrote:

> How can i print a text file(ascii) through a remate printer using java
> (not jsp)
> 
> thanks

Use an OutputStream to print to the printer
 OutputStream ou= new OutputStream("//<ServerName/PrinterName");
   out.print(<bytes>);
Technical Details
Message-ID: <43263807@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4325864d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,7f6210029e4d4c51
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <43263807@newsgroups.borland.com>
From: "Paul Nichols [TeamB]" <paul@comp.net>
Subject: Re: How Can i print a text file through a remote printer using java not jsp
Newsgroups: borland.public.jbuilder.java.language
Date: Tue, 13 Sep 2005 21:38:41 -0500
References: <4325864d@newsgroups.borland.com>
Lines: 10
Organization: CLC
User-Agent: KNode/0.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 71.8.69.112
X-Trace: newsgroups.borland.com 1126578183 71.8.69.112 (12 Sep 2005 19:23:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail