Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Printing too slowly with Java
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 4th November 03:48
salvador huertas
External User
 
Posts: 1
Default Printing too slowly with Java



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.
  Reply With Quote


 


2 4th November 03:48
paul nichols[teamb]
External User
 
Posts: 1
Default Printing too slowly with Java



Which jdk are you using?
  Reply With Quote
3 4th November 03:48
salvador huertas
External User
 
Posts: 1
Default Printing too slowly with Java


I'm using a old JDK java 1.3. It's this the reason of the problem?. I'm
thinking update my JBuilder. Any Ideas?

Many thanks in advance!!
Salvador Huertas.
  Reply With Quote
4 4th November 03:48
paul nichols[teamb]
External User
 
Posts: 1
Default Printing too slowly with Java


Could be.I am not sure if there were any major bugs in Print services in
1.3.

I do know that the optimizations in aspects with 1.5 and 1.6 are vastly
superior to 1.3.

Have you tried running this on 1.5 or 1.6?
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666