Jump to content
Software FX Community

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


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...