void print(object sender, PrintPageEventArgs e) { int width = 1090; int height = 1650; Bitmap bmp = new Bitmap(bill_groupbox.Width,bill_groupbox.Height); Rectangle rec = new Rectangle(0, 0, bill_groupbox.Height, bill_groupbox.Width); bill_groupbox.DrawToBitmap(bmp,rec); e.Graphics.DrawImage(bmp, new RectangleF(0, 0, bill_groupbox.Width,bill_groupbox.Height)); e.Graphics.SmoothingMode = SmoothingMode.AntiAlias; e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; e.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)