Article View: borland.public.jbuilder.java.language
Article #17123Re: Printing in Java
From: Tor Iver Wilhelmsen
Date: Fri, 11 Dec 1998 00:00
Date: Fri, 11 Dec 1998 00:00
18 lines
1147 bytes
1147 bytes
"Mitja Udov�" <mitja.udovc@animus.mf.uni-lj.si> writes: > I want to write an application in Java (Jbuilder 2.0), and I have some > questions about printing. > > 1. How to print from the application (stand alone or applet, not from > browser)? Look into java.awt.PrintJob, but keep in mind that the printing model has become _much_ more powerful in Java 1.2/2.0 (which JBuilder does not support if you want to use JBCL). > 2. How to print forms and reports (i need fanfold paper) to dot-matrix > printers > (non-graphic printing) For this you'll want to send data directly to the printer port; look into javax.comm or open a FileOutputStream on the desired port/device.
Technical Details
Message-ID:
<u1zm6c3l4.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3670FE42.55AC9F8B@animus.mf.uni-lj.si>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,61f15d8fbec42c4e X-Google-Attributes: gidf74b3,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: Printing in Java Date: 1998/12/11 Message-ID: <u1zm6c3l4.fsf@sds.no> X-Deja-AN: 421151014 Sender: towi@SDSA1761 References: <3670FE42.55AC9F8B@animus.mf.uni-lj.si> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language