One thing that you could try is to draw the graph to an offscreen bitmap, then draw the bitmap all at once to the printer. For example:
private void OnPrintPage(object sender, PrintPageEventArgs e)
{
int width = e.MarginBounds.Width;
int height = e.MarginBounds.Height / 3;
using (Bitmap bmp = new Bitmap(width, height, PixelFormat.Format32bppPArgb))
using (Graphics g = Graphics.FromImage(bmp))
{
Rectangle bounds = new Rectangle(0, 0, width, height);
scatterGraph1.Draw(new ComponentDrawArgs(g, bounds));
e.Graphics.DrawImage(bmp, e.MarginBounds.X, e.MarginBounds.Y);
}
}
Please try this and post a reply about how this worked out. Thanks.
- Elton