I have inherited some code to print the contents of a form however the image produced on paper seems to have some sort of shadow/blurriness as if its tried to do anti-alasing but not done so very well and the letters are pixelated on the edges.
Does anyone know a way of improving the final quality?
System.Drawing.Printing.PrintDocument Doc = new System.Drawing.Printing.PrintDocument();
Doc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.Doc_PrintPage123);
Doc.DefaultPageSettings.Landscape = true;
Doc.DefaultPageSettings.PrinterSettings.DefaultPageSettings.Landscape = true;
Doc.DefaultPageSettings.PrinterSettings.Copies = 2;
Doc.PrinterSettings.Copies = 2;
Doc.Print();
private void Doc_PrintPage123(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
Bitmap bitmap = new Bitmap(AForm.Width, AForm.Height);
AForm.DrawToBitmap(bitmap, new Rectangle(0, 0, bitmap.Width, bitmap.Height));
e.Graphics.DrawImage(bitmap, 0, 0);
}