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.
|