Article View: borland.public.jbuilder.java.language
Article #79Printing too slowly with Java
From: Salvador Huertas
Date: Sat, 31 Mar 2007 07:45
Date: Sat, 31 Mar 2007 07:45
19 lines
1495 bytes
1495 bytes
Hi,
I'm using PrintJob Class to print and I have the problem that the
files the program build in the spooler printer are too big ( 2MB/page A4), I
think the problem could be in the font that I'm using but I don't know why
because I'm using "Courier New". I do:
PrintJob pg = new PrintJob(...);
Font fon = new Font("courier new", Font.PLAIN, 12);
Graphics gra = pg.getGraphics();
gra.setFont(fon);
gra.drawString("vvvvvvvvvv",10,10);
.....
I don't know if somebody have a the same experience printing with java
and if I'm doing something wrong in this code,
Thanks in advance!!
Salvador Huertas.
Technical Details
Message-ID:
<460e1199@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,4618f09645d9854,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Salvador Huertas" <None@none> Newsgroups: borland.public.jbuilder.java.language Subject: Printing too slowly with Java Date: Sat, 31 Mar 2007 09:45:27 +0200 Lines: 22 Organization: Satreu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 NNTP-Posting-Host: 88.16.3.32 Message-ID: <460e1199@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1175327129 88.16.3.32 (31 Mar 2007 00:45:29 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail