Printing produces incomplete graph

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Guest

Printing produces incomplete graph

Post by Guest » Tue Dec 13, 2005 4:41 pm

We are encountering a strange bug that can be reproduced on two different workstations. It seems when first printing a graph using the code:

chartPanel.createChartPrintJob();

...the graph is printed correctly. However, sometimes subsequent prints of the same graph yield an incomplete graph. The following scan shows the first print-out that is successful.

Image

The rest of the scans show subsequent print-outs that exhibit incomplete data.

Image
Image
Image

Sometimes the print-out shows complete data and sometimes incomplete data. I cannot not find any pattern for the incomplete graphs. Thanks.

converge
Posts: 30
Joined: Wed Jun 16, 2004 3:00 pm

Post by converge » Tue Dec 13, 2005 4:43 pm

Sorry, I forgot to login before posting.

converge
Posts: 30
Joined: Wed Jun 16, 2004 3:00 pm

Post by converge » Tue Dec 20, 2005 8:13 pm

Any thoughts?

Bigdaddy
Posts: 5
Joined: Thu Sep 23, 2004 8:25 am

Why does printing produces incomplete graph???

Post by Bigdaddy » Sun Mar 05, 2006 4:53 am

OS: Windows XP
Printer: HP OfficeJet 7135xi all-in-one

I am having the same problem with print jobs occasionally failing to print correctly. Does anyone have a solution?

I have charts that print ok the first time, but will fail occassionally on subsequent prints. Does anyone know why this is happening?

Here is what I do:

1. I have a chart that I zoom in on a little, but the entire chart still shows on the screen
2. I right-click to print
3. Java printer dialog pops up
3. Choose landscape for the orientation
4. Click OK
5. My native Windows XP printer dialog pops up
6. I click OK
7. Sometimes it prints correctly and other times it does not

Is there something I need to add/overide in the code fix this?

Thanks.

converge
Posts: 30
Joined: Wed Jun 16, 2004 3:00 pm

Post by converge » Mon Mar 06, 2006 2:32 pm

I still have not resolved this issue. However, if I turn off HyperThreading, the problem goes away.

Locked