Printing TDBChart question

Printing TDBChart question

Post by Mark Grove » Wed, 13 Oct 2004 22:58:13


I have a line graph using the TDBChart component in Delphi 7.
When I print to one printer (an HP Laserjet 8000) is works fine.
When I print to a different printer (an HP Laserjet 5si) it doesn't print
the lines between the points on the chart.
Is there a way to make this work correctly no matter what printer?

Here's the method I'm using to print:

DBChart1.PrintRect(Rect(0,0,Printer.PageWidth-1,Printer.PageHeight-1));
 
 
 

Printing TDBChart question

Post by Horst Reic » Thu, 14 Oct 2004 16:07:17

Dear Mark,
I think your problem has nothing to do with TDBChart. It seems to me a
general problem of Windows printer drivers. They often map colors you will
see on a color printer as e.g. yellow to white on the printout. Some printer
drivers have extended settings where you can set the graph printing of gray
values. I hope you find the settings with your special driver.

Regards Horst

 
 
 

Printing TDBChart question

Post by John Leave » Thu, 14 Oct 2004 18:40:51


I've posted my chart utils unit to Borland.Public.Attachments.

The PrintChartInRect() will output a TChart or TDBChart in any
specified rectangle while maintaining font and pen sizes. There are
also routines for export to BMP / GIF / PNG format files.


John Leavey