User259356331 posted
Hi everyone,
I have a problem printing a win form in a good quality.
I use the follwoing code in the PrintPage event:
Bitmap bmp = new Bitmap(this.Widht,this.Height,16bppFormat);
this.drawToBitmap(bmp , new Rectangle (0,0,this.Widht,this.Height));
e.Graphics.DrawImage(0,0,new Point(0,0));
I get the image of the entire form but it is not in sharp quality.
For example, I have a certain image on the form. When I print the captured form , which has an image on it, (using the above code) I get it not in such sharp quality as I would get it when printing the same image
with the IE browser.
I don't know why the IE has much better quality where I can see small details of the image whereas printing the same image in WinForms i don't get the same quality as in IE.
Does any one know a better way where I can capture the form (in winforms) and print it in the best quality possible?
Thank you in advance,
Mike.