Article View: borland.public.jbuilder.java.api
Article #2897Re: Problem with printing...
From: potel
Date: Mon, 20 Jul 1998 00:00
Date: Mon, 20 Jul 1998 00:00
47 lines
2389 bytes
2389 bytes
Hi, Oldrich. What you are experiencing is a set of known problems in Java printing, particularly in the Windows port. Check out the Java Developer Connection Bug Parade at http://developer.java.sun.com/developer/bugParade/index.html and in particular look at bugs #4084038 and #4079786 including the Sun replies. There was an original problem in JDK 1.1.4 and earlier, an attempted fix in JDK 1.1.5 which wasn't correct, plus JDK 1.2beta3 reverted to the 1.1.4 behavior. The good news is that it's all supposed to get fixed in both 1.1.7 and 1.2beta4. You can work around all this and print correctly. If, in particular, your need is to print text documents, I've developed a JavaBean (also usable as a simple class) for doing paginated printing of plain text documents from Java. It supports tabs, margins, line wrap, headers/footers, page numbering, etc. I have documented the parameters you need to get around the above problems on different versions of the JDK. I also have in the works a version that will test which JDK and OS you are running and make these settings automatically. I have a free version of TextPrinter available for download from http://www.wildcrest.com, so you can try it out and see if it meets your needs. Regards, Mike Potel Wildcrest Associates ---------- In article <6mm29q$hdt6@forums.borland.com>, "Oldrich Mudra" <eurosoft@telecom.cz> wrote: > > We have problem with printing from Java. In JDK 1.1.2 was the printed area > smaller than expected, since JDK 1.1.5 is much greater than it should be. > The method getPageDimension() doesn't work properly. Does anybody know > where's the problem? > > Thanks. > > OM > > -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
Technical Details
Message-ID:
<6p0gt8$uka$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6mm29q$hdt6@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,bc3cf1fce69d3802 X-Google-Attributes: gid1089d0,public From: potel@wildcrest.com Subject: Re: Problem with printing... Date: 1998/07/20 Message-ID: <6p0gt8$uka$1@nnrp1.dejanews.com> X-Deja-AN: 373285267 References: <6mm29q$hdt6@forums.borland.com> Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Jul 20 22:38:31 1998 GMT Newsgroups: borland.public.jbuilder.java.api X-Http-User-Agent: Mozilla/4.04 [en] (Win95; I)