예제 #1
0
        private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            Bitmap bm = new Bitmap(this.Grid1.Width, this.Grid1.Height);

            Grid1.DrawToBitmap(bm, new Rectangle(0, 0, this.Grid1.Width, this.Grid1.Height));
            e.Graphics.DrawImage(bm, 0, 0);
        }