Jump to content
Software FX Community

ChartFX.chart.Paint() doesn't support some printer dirvers?


User (Legacy)

Recommended Posts

I used to the sample code to print two charts in the same page:

private void PrintCharts(object sender, System.EventArgs e)

{

PrintDocument pd = new PrintDocument();

pd.PrintPage += new PrintPageEventHandler(PrintPage);

pd.Print();

}

private void PrintPage(object sender,

System.Drawing.Printing.PrintPageEventArgs e)

{

chart1.Paint(e.Graphics,new

Rectangle(0,0,e.MarginBounds.Width,e.MarginBounds.Height/2),PaintFlags.Norma

l);

chart2.Paint(e.Graphics,new

Rectangle(0,e.MarginBounds.Height/2,e.MarginBounds.Width,e.MarginBounds.Heig

ht/2),PaintFlags.Normal);

}

But only the second chart got printed correctly. For chart1, a small empty

square in wrong position was printed.

I was using HP LaserJet 4050.

Then I used AcrobatPDFWriter as the printer, it worked fine.

So I am guessing ChartFX doesn't support some kinds of printers' driver very

well. If it is correct, could you please

give me a list of printers that it can support?

Many Thanks.

Jason

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...