🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.language
4 messages
4 total messages Started by Salvador Huertas Sat, 31 Mar 2007 07:45
Printing too slowly with Java
#79
Author: Salvador Huertas
Date: Sat, 31 Mar 2007 07:45
19 lines
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.
Re: Printing too slowly with Java
#83
Author: Paul Nichols[TeamB]
Date: Mon, 02 Apr 2007 23:51
7 lines
1188 bytes
Salvador Huertas wrote:
>       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 

Which jdk are you using?
Re: Printing too slowly with Java
#87
Author: Salvador Huertas
Date: Thu, 05 Apr 2007 20:59
5 lines
1134 bytes
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.
Re: Printing too slowly with Java
#88
Author: Paul Nichols[TeamB]
Date: Fri, 06 Apr 2007 04:53
15 lines
1446 bytes
Salvador Huertas wrote:
> 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.
> 
> 
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?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads